vmware-nsx/vmware_nsx/services/l2gateway
Aaron Rosen 86118f6692 nxv3: mass refactor of nsxlib
This patch refactors the current codebase to be more modular
and testable. The main changes are:

  - pull out all of the profile setup logic from the __init__
    method to it's own method _init_nsx_profiles method to make
    testing the code easier.

  - refactors the nsxlib.v3 code to break out all neutron related
    exceptions and cleans up the interface so we can make nsxlib.v3
    it's own standalone library eventually.

To improve:

  - Currently we have nsxlib.v3.dfw_api and nsxlib.v3.firewall,
    we should refactor this code and merge them into one file.

  - refactor nsxlib to section of each api component to it's own
    subclass. For example, nsxlib().port.create() rather than
    nsxlib().create_port(). I think this would be most useful
    for the security group/firewall integration as there are many
    methods there that are needed to interface with nsx as the security
    group feature is requires the most orchestration with nsx.
    Breaking them into a sub class will make things more easy to understand.

Change-Id: If2fe1e014b78703ff0a9cdff1e4e8d45f3a4a16d
2016-08-19 12:28:20 +00:00
..
nsx_v NSX|V add edge_ha per availability zone 2016-07-20 10:58:49 +03:00
nsx_v3 nxv3: mass refactor of nsxlib 2016-08-19 12:28:20 +00:00
__init__.py Move vmware_nsx/neutron/services to vmware_nsx/services 2015-09-14 16:59:23 -07:00
README.rst Fix README file for better readability 2016-07-09 21:55:43 -07:00

Enabling NSX L2 Gateway Plugin in DevStack

Following steps are meant for L2GW service in neutron for stable/mitaka* release onwards.

  • Download DevStack

  • Add networking-l2gw repo as an external repository and configure following flags in local.conf:

    [[local|localrc]]
    enable_plugin networking-l2gw https://github.com/openstack/networking-l2gw
    ENABLED_SERVICES+=l2gw-plugin
  • For NSX|v3 include the following additional flags in local.conf:

    [[local|localrc]]
    NETWORKING_L2GW_SERVICE_DRIVER=L2GW:vmware-nsx-l2gw:vmware_nsx.services.l2gateway.nsx_v3.driver.NsxV3Driver:default
    DEFAULT_BRIDGE_CLUSTER_UUID=
  • For NSX|V include the following additional flags in local.conf:

    [[local|localrc]]
    NETWORKING_L2GW_SERVICE_DRIVER=L2GW:vmware-nsx-l2gw:vmware_nsx.services.l2gateway.nsx_v.driver.NsxvL2GatewayDriver:default
  • Run stack.sh

* Configuration for stable/liberty release in local.conf:

[[local|localrc]]
enable_plugin networking-l2gw https://github.com/openstack/networking-l2gw
NSX_L2GW_DRIVER='vmware_nsx.services.l2gateway.nsx_v3.driver.NsxV3Driver' # NSXv3 driver
NSX_L2GW_DRIVER='vmware_nsx.services.l2gateway.nsx_v.driver.NsxvL2GatewayDriver' # NSX|V driver
Q_SERVICE_PLUGIN_CLASSES=vmware_nsx_l2gw
DEFAULT_BRIDGE_CLUSTER_UUID=