NSX|P: Remove tier1 router service in cleanup

Change-Id: I23d3919d56d6cdb7a5693e14e2db2fdafd1d92bb
This commit is contained in:
Adit Sarfaty 2018-12-24 14:00:47 +02:00
parent 8374f93bbc
commit 4831350452
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ class NSXClient(object):
for rtr in routers:
# remove all nat rules from this router before deletion
self.cleanup_tier1_nat_rules(rtr['id'])
try:
self.nsxpolicy.tier1.remove_edge_cluster(rtr['id'])
except exceptions.ManagerError as e:
# Not always exists
pass
try:
self.nsxpolicy.tier1.delete(rtr['id'])
except exceptions.ManagerError as e: