VMware NSX
Most likely the deletion of the IP Address Pools is not progressing because there are some IPs still allocated from this IP Address Pool.
Follow the following procedure to release the IPs from the affected IP Address Pool:
curl -k -u 'admin:<password>' -X GET 'https://<nsx-manager-fqdn>/policy/api/v1/infra/ip-pools?include_mark_for_delete_objects=true'
"unique_id"
and also take a note of "path"
curl -k -u 'admin:<password>
' -X GET 'https://<nsx-manager-fqdn>
/api/v1/pools/ip-pools/<unique-id-from-step-1>/allocations'
curl -u 'admin:<password>
' -H "Content-Type: application/json" -k -X POST https://<nsx-manager-fqdn>/api/v1/pools/ip-pools/<unique-id-from-step-1>?action=RELEASE -d '{"allocation_id":"<IP Address>"}'
mark_for_delete
is equals to true
curl -k -u 'admin:<password>
' -X DELETE 'https://<nsx-manager-fqdn>/api/v1/<path-from-step-1/'
curl -k -u 'admin:#########' -X DELETE 'https://<nsx-manager-fqdn>/api/v1/infra/ip-pools/IP-Pool-name-from-path/'