If there is any resource created by OpenStack left on the NSX
backend, we can use this utility to clean it up. The cleanup steps
are as follows:
1. Cleanup firewall sections
2. Cleanup NSGroups
3. Cleanup logical router ports
4. Cleanup logical routers
5. Cleanup logical switch ports
6. Cleanup logical switches
Reviewed: https:/ /review. openstack. org/248287 /git.openstack. org/cgit/ openstack/ vmware- nsx/commit/ ?id=6634852542b a5c7381d2edb660 2a8eb8bf492bfb
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 6634852542ba5c7 381d2edb6602a8e b8bf492bfb
Author: Tong Liu <email address hidden>
Date: Fri Sep 18 18:30:59 2015 +0000
Cleanup utility for nsxt plugin
If there is any resource created by OpenStack left on the NSX
backend, we can use this utility to clean it up. The cleanup steps
are as follows:
1. Cleanup firewall sections
2. Cleanup NSGroups
3. Cleanup logical router ports
4. Cleanup logical routers
5. Cleanup logical switch ports
6. Cleanup logical switches
Usage: NSXClient( 'mgr_ip' , 'user', 'pass') os_logical_ ports() os_logical_ switches( )
$ python nsxt_cleanup.py --mgr-ip <mgr_ip> -u <user> -p <pass>
or
>>> import nsxt_cleanup
>>> nsxt = nsxt_cleanup.
>>> nsxt.cleanup_
>>> nsxt.cleanup_
>>> nsxt.cleanup_all()
Closes-Bug: #1518481 1c323627dff5565 5fab9dbc09a 54b40a2511df2e2 cbe98342f6)
Change-Id: I5e5ff73d11ce79
(cherry picked from commit 4b641bc63e891aa