File: CONTRIBUTING.rst

package info (click to toggle)
networking-generic-switch 8.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,164 kB
  • sloc: python: 9,272; sh: 373; makefile: 23
file content (78 lines) | stat: -rw-r--r-- 2,880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#########################################
Contributing to Networking-generic-switch
#########################################

If you would like to contribute to the development of GenericSwitch project, you must follow the
general OpenStack community procedures documented at:

   https://docs.openstack.org/infra/manual/developers.html#development-workflow

Pull requests submitted through GitHub will be ignored.

Contributor License Agreement
=============================

.. index::
   single: license; agreement

In order to contribute to the GenericSwitch project, you need to have
signed OpenStack's contributor's agreement.

.. seealso::

   * https://docs.openstack.org/infra/manual/developers.html
   * https://wiki.openstack.org/CLA

Related Projects
================

   * https://docs.openstack.org/neutron/latest
   * https://docs.openstack.org/ironic/latest


Project Hosting Details
=======================

Bug tracker
    https://bugs.launchpad.net/networking-generic-switch

Code Hosting
    https://opendev.org/openstack/networking-generic-switch

Code Review
    https://review.opendev.org/#/q/status:open+project:openstack/networking-generic-switch,n,z


Creating new device plugins
===========================

#. Subclass the abstract class
   ``networking_generic_switch.devices.GenericSwitch``
   and implement all the abstract methods it defines.

   * Your class must accept as first argument a dictionary that contains
     all fields given in the device config section of the ML2 plugin config.
     This will be available as ``self.config`` in the instantiated object.
     The second argument is the device name as specified in the configuration.
     It is recommended to accept and pass ``*args`` and ``**kwargs`` to the
     __init__ method of the parent class: this helps to stay compatible with
     future changes of the base class.

#. Register your class under ``generic_switch.devices`` entrypoint.
#. Add your device config to the plugin configuration file
   (``/etc/neutron/plugins/ml2/ml2_conf_genericswitch.ini`` by default).
   The only required option is ``device_type`` that must be equal to the
   entrypoint you have registered your plugin under, as it is used for plugin
   lookup (see provided ``Netmiko``-based plugins for example).


Additional Contributor Resources
================================
GenericSwitch is a member of the Bare Metal (ironic) program in OpenStack.
Development of GenericSwitch follows many ironic conventions.

The `Ironic developer quickstart <https://docs.openstack.org/ironic/latest/contributor/dev-quickstart.html>_`
has some relevant information -- particularly on unit testing with tox,
integration testing with devstack, and other information that may be useful
for GenericSwitch developers. As the documentation is written targeting
Ironic, it should only be used as a general guideline.