]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Create a common function for method _parse_network_vlan_ranges used
authorHenry Gessau <gessau@cisco.com>
Thu, 9 May 2013 04:28:39 +0000 (00:28 -0400)
committergessau <gessau@cisco.com>
Thu, 9 May 2013 15:04:16 +0000 (11:04 -0400)
commit6a5edbc3c916fa854963fe648d16761129165f4f
tree01e35d14777338f7de3d91be4e822daee13e1aa3
parent916d54d010ce93d3d0f1d8b3a6bb2fba9ce7938c
Create a common function for method _parse_network_vlan_ranges used
by plugins.

The _parse_network_vlan_ranges method does the same thing for the
linuxbridge, ovs, and hyperv plugins. Create a common function for
the plugins to use instead. This paves the way for improving vlan
range verification (see #1169266) in one place.

Fixes Bug #1177428

Change-Id: Ie8c20807e9146dd9c8bc011dd3a4dc10ec871e0b
quantum/common/exceptions.py
quantum/plugins/common/utils.py [new file with mode: 0644]
quantum/plugins/hyperv/hyperv_quantum_plugin.py
quantum/plugins/linuxbridge/lb_quantum_plugin.py
quantum/plugins/openvswitch/ovs_quantum_plugin.py
quantum/tests/unit/test_common_utils.py