[openstack-dev] [networking][ml2] Device configuration

Rich Curran (rcurran) rcurran at cisco.com
Wed Jun 19 15:59:30 UTC 2013


Hi All -

Regarding the configuration (ml2_conf.ini) of mechanism devices. Cisco defines external devices in our INI file like this:

# Nexus Switch Format.
# [NEXUS_SWITCH:<IP address of switch>]
# <hostname>=<port> <- for cisco nexus devices a port would be in the form "<slot>/<port#>"
# ssh_port=<ssh port>
# username=<credential username> <- used as login username to the switch
# password=<credential password> <- password for that username

Any thoughts on how we want to define this configuration info under ML2?

The simplest solution is to have separate INI sections for each vendor/device.
Ex.
[CISCO_NEXUS:<ipaddr>]
Variables defined only for cisco nexus devices

[ARISTA_XYZ]
Whatever you want.

Note that the cisco INI file can define more than one NEXUS_SWITCH section (different IPs).

We could think about creating more generic section headers but would need a variable telling us what device owns that section.
Ex.
[ML2_MECH_DEVICE:<ip_addr>]
variable1 =
variable2 =
type = cisco_nexus

The cisco config.py file doesn't have default values for these sections. At init time we create a dictionary of these devices.

Thoughts?

Thanks,
Rich




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130619/3363293d/attachment.html>


More information about the OpenStack-dev mailing list