Skip to main content

Generic Switch ML2 Neutron Driver

Project description

This is a Modular Layer 2 Neutron Mechanism driver. The mechanism driver is responsible for applying configuration information to hardware equipment. GenericSwitch provides a pluggable framework to implement functionality required for use-cases like OpenStack Ironic multi-tenancy mode. It abstracts applying changes to all switches managed by this ML2 plugin and handling local_link_information field of Neutron port.

Supported Devices

  • Cisco IOS switches

  • Huawei switches

  • OpenVSwitch

  • Arista EOS

  • Dell (S4810)

This Mechanism Driver architecture allows easily to add more devices of any type.

OpenStack Neutron v2.0 => ML2 plugin => Generic Mechanism Driver => Device plugin

As example plugins, Cisco IOS and Linux OpenVSwitch are provided. These device plugins use Netmiko library, which in turn uses Paramiko library to access and configure the switches via SSH protocol.

Configuration

In order to use this mechanism the generic configuration file needs to be created/updated with the appropriate configuration information.

Switch configuration format:

[genericswitch:<switch name>]
device_type = <netmiko device type>
ip = <IP address of switch>
port = <ssh port>
username = <credential username>
password = <credential password>
key_file = <ssh key file>
secret = <enable secret>

Here is an example of /etc/neutron/plugins/ml2/ml2_conf_genericswitch.ini for the Cisco IOS device:

[genericswitch:sw-hostname]
device_type = netmiko_cisco_ios
username = admin
password = password
secret = secret
ip = <switch mgmt ip address>

for the Huawei device:

[genericswitch:sw-hostname]
device_type = netmiko_huawei
username = admin
password = password
port = 8222
secret = secret
ip = <switch mgmt ip address>

for the Arista EOS device:

[genericswitch:arista-hostname]
device_type = netmiko_arista_eos
ip = <switch mgmt ip address>
username = admin
key_file = /opt/data/arista_key

for the Dell device:

[genericswitch:dell-hostname]
device_type = netmiko_dell_force10
ip = <switch mgmt ip address>
username = admin
password = password
secret = secret

Additionally the GenericSwitch mechanism driver needs to be enabled from the ml2 config file /etc/neutron/plugins/ml2/ml2_conf.ini:

[ml2]
tenant_network_types = vlan
type_drivers = local,flat,vlan,gre,vxlan
mechanism_drivers = openvswitch,genericswitch
...
...

(Re)start neutron-server specifying this additional configuration file:

neutron-server \
    --config-file /etc/neutron/neutron.conf \
    --config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
    --config-file /etc/neutron/plugins/ml2/ml2_conf_genericswitch.ini

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

networking-generic-switch-0.1.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

networking_generic_switch-0.1.1-py2-none-any.whl (30.3 kB view details)

Uploaded Python 2

File details

Details for the file networking-generic-switch-0.1.1.tar.gz.

File metadata

File hashes

Hashes for networking-generic-switch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6811b3822794f7c2978a5205c7628e7e11a7e770e11b562772108542a48e2e34
MD5 2e03e9aba2cbf850654c831cad847728
BLAKE2b-256 b249a68ab71761b464f7d10f61362ddc8fb597981af0f4e84176c089fcc4d85b

See more details on using hashes here.

File details

Details for the file networking_generic_switch-0.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for networking_generic_switch-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2b916566ac6fd088ae2e3fd0827064b43b51fede4f282782c9aead6c45be02d4
MD5 fa6d8b13ffca2f5f7c2f92b0eab6c5f7
BLAKE2b-256 42c3467e400ddf7dae6ddc2f1e45614bbe09c7479f788f0659d74f373f016523

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page