Merge "Correct exception output for subnet deletion when port is used"
This commit is contained in:
commit
fcb27b5ae0
@ -1164,7 +1164,7 @@ class QuantumDbPluginV2(quantum_plugin_base_v2.QuantumPluginBaseV2):
|
||||
a.ports.device_owner in AUTO_DELETE_PORT_OWNERS
|
||||
for a in allocated)
|
||||
if not only_auto_del:
|
||||
raise q_exc.NetworkInUse(subnet_id=id)
|
||||
raise q_exc.SubnetInUse(subnet_id=id)
|
||||
|
||||
# remove network owned ports
|
||||
for allocation in allocated:
|
||||
|
Loading…
x
Reference in New Issue
Block a user