NSXv3: Force delete router
Router created under protected identity can not be modified on the backend directly. However, ports can be added to this router directly on the backend, in which case openstack will no longer be able to delete the router, since it has associated ports. This change fixes the issue by adding ?force=true to router deletion. Change-Id: Ia816b1dfa770bb0bded9677dd1a0cbd094a59ebc
This commit is contained in:
parent
233b7bb2b1
commit
c8ae461154
@ -2769,7 +2769,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
||||
# It is safe to do now as db-level checks for resource deletion were
|
||||
# passed (and indeed the resource was removed from the Neutron DB
|
||||
try:
|
||||
self._router_client.delete(nsx_router_id)
|
||||
self._router_client.delete(nsx_router_id, force=True)
|
||||
except nsx_lib_exc.ResourceNotFound:
|
||||
# If the logical router was not found on the backend do not worry
|
||||
# about it. The conditions has already been logged, so there is no
|
||||
|
Loading…
x
Reference in New Issue
Block a user