How to setup devstack to use ml2 plugin for Cisco nexus switches?

asked 2015-05-23 05:46:07 -0500

Hi I have setup Devstack Juno environment with ml2 neutron plugin with vlan type and OVS mechanism and it works fine. Now, I want to extend this to use cisco nexus mechanism driver and configure Cisco nexus switches. I referred to some of the links below for this: https://wiki.openstack.org/wiki/Neutron/ML2#ML2_Configuration (https://wiki.openstack.org/wiki/Neutr...) https://wiki.openstack.org/wiki/Neutron/ML2/MechCiscoNexus (https://wiki.openstack.org/wiki/Neutr...)

I modified by local.conf ml2 section as below: Q_PLUGIN=ml2 Q_AGENT=openvswitch Q_ML2_PLUGIN_MECHANISM_DRIVERS=cisco_nexus Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,vxlan Q_ML2_TENANT_NETWORK_TYPE=vlan,vxlan ML2_VLAN_RANGES=physnet1:100:109 ENABLE_TENANT_TUNNELS=False ENABLE_TENANT_VLANS=True PHYSICAL_NETWORK=physnet1 NEUTRON_CREATE_INITIAL_NETWORKS=False

I created /etc/neutron/plugins/ml2/ml2_conf_cisco.ini file with Cisco switch IP address and credentials. I restarted q-agt and q-svc services: python /usr/local/bin/neutron-server --config-file /e/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf_cisco.ini

When I create new network, I was hoping that the new vlan configuration happens on Cisco nexus switch and not on OVS. It still seems to happen in OVS. How does devstack/neutron know to create the network on a particular device.

Appreciate your time.

Thanks Sreenivas

edit retag flag offensive close merge delete