
Fixes bug 1174593 VLAN IDs in the range 1006-4094 are considered to be in the extended range by the Cisco Nexus 3K switch. As such, the 3K rejects any state change configuration commands for VLANs in this range, including "state active" and "no shutdown". The errors returned by the 3K for these commands can be ignored, since the default states for these commands are acceptable for the 3K. For the 5K and 7K versions of the Nexus switch, on the other hand, the "state active" and "no shutdown" commands are required for proper VLAN configuration, regardless of VLAN ID. This fix splits the configuration commands which are used to create a VLAN on the Nexus switch into three separate configurations: - VLAN creation - state active - no shutdown For the "state active" and "no shutdown" configurations, the Cisco Nexus plugin will tolerate (ignore) errors involving invalid setting of state for VLANs in the extended VLAN range. These specific errors can be identified by looking for the appearance of certain signature strings in the associated exception's message string, i.e. "Can't modify state for extended" or "Command is allowed on VLAN". This approach will yield a very small hit in performance, but the solution is much less error prone than requiring customers to configure the Cisco plugin for 3K vs. 5K vs. 7K, or perhaps even specific software versions of the 3K, in order to inform the Cisco plugin whether VLAN state configuration commands should be used or not. Change-Id: I1be4966ddc6f462bca38428c4f904f8c982f318f
# -- Welcome! You have come across a cloud computing network fabric controller. It has identified itself as "Quantum." It aims to tame your (cloud) networking! # -- External Resources: The homepage for Quantum is: http://launchpad.net/quantum . Use this site for asking for help, and filing bugs. Code is available on github at <http://github.com/openstack/quantum>. The latest and most in-depth documentation on how to use Quantum is available at: <http://docs.openstack.org>. This includes: Quantum Administrator Guide http://docs.openstack.org/trunk/openstack-network/admin/content/ Quantum API Reference: http://docs.openstack.org/api/openstack-network/2.0/content/ The start of some developer documentation is available at: http://wiki.openstack.org/QuantumDevelopment For help using or hacking on Quantum, you can send mail to <mailto:openstack-dev@lists.openstack.org>.
Description
Languages
Python
98.5%
Shell
1.5%