]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve error message when flat network already exists
authorBob Kukura <rkukura@redhat.com>
Fri, 7 Sep 2012 01:42:54 +0000 (21:42 -0400)
committerBob Kukura <rkukura@redhat.com>
Fri, 7 Sep 2012 01:42:54 +0000 (21:42 -0400)
commitc4d3c1c0349392cb5032d0fb870515f6c9e8385d
treebe9fcd3ff37e44017034e38e4d6e27bbb318974e
parentad18a473ec8c5f8eb40c7749decea39e44a9fea4
Improve error message when flat network already exists

Fixes bug 1045601.

When attempting to create a flat network on a physical_network on
which a flat network is already allocated, the openvswitch and
linuxbridge plugins return a FlatNetworkInUse exception rather than a
VlanIdInUse exception referencing VLAN -1.

Change-Id: Id79e917e1376ebbb199efc3f14d9f378c6a04050
quantum/common/exceptions.py
quantum/plugins/linuxbridge/db/l2network_db_v2.py
quantum/plugins/openvswitch/ovs_db_v2.py