NSX-V3: Do not remove edge id from logical router
When removing or changing the gateway of a router, we should not set the edge-cluster id to None, and the NSX backend does not support it. Change-Id: I46e3ccdf1f3325ff0f6995b40146e26fe5a195d9
This commit is contained in:
parent
e427c8fe39
commit
410effd667
@ -3533,11 +3533,9 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
||||
for subnet in subnets:
|
||||
self._del_subnet_no_dnat_rule(context, nsx_router_id, subnet)
|
||||
if remove_router_link_port:
|
||||
# remove the link port and reset the router edge cluster
|
||||
# remove the link port and reset the router transport zone
|
||||
self.nsxlib.router.remove_router_link_port(
|
||||
nsx_router_id, org_tier0_uuid)
|
||||
self.nsxlib.router.update_router_edge_cluster(
|
||||
nsx_router_id, None)
|
||||
if self.nsxlib.feature_supported(
|
||||
nsxlib_consts.FEATURE_ROUTER_TRANSPORT_ZONE):
|
||||
self.nsxlib.router.update_router_transport_zone(
|
||||
|
Loading…
x
Reference in New Issue
Block a user