4b641bc63e
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: $ python nsxt_cleanup.py --mgr-ip <mgr_ip> -u <user> -p <pass> or >>> import nsxt_cleanup >>> nsxt = nsxt_cleanup.NSXClient('mgr_ip', 'user', 'pass') >>> nsxt.cleanup_os_logical_ports() >>> nsxt.cleanup_os_logical_switches() >>> nsxt.cleanup_all() Change-Id: I5e5ff73d11ce791c323627dff55655fab9dbc09a |
||
---|---|---|
.. | ||
nsxt_cleanup.py | ||
nsxv_cleanup.py |