NSX|V: Fix portgroup provider network validation
In case the physical network is not assigned, the db query should be skipped or else it fails and raise. Change-Id: Ief5af76f47e6b037e5fdda707f7fa75f73b0653f
This commit is contained in:
parent
dcc896fc66
commit
f1010b01ef
|
@ -816,6 +816,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||
physical_network, network['name'])):
|
||||
err_msg = _("Portgroup name must match network name")
|
||||
|
||||
if not err_msg:
|
||||
# make sure no other neutron network is using it
|
||||
bindings = (
|
||||
nsxv_db.get_network_bindings_by_physical_net_and_type(
|
||||
|
|
Loading…
Reference in New Issue