This is a known issue affecting VMware NSX for vSphere 6.x.
Currently, there is no resolution.
To work around the issue, the following API call can be used to release the IP addresses that are not in use.
Note:
In NSX for vSphere release 6.2.0 and later, if a VTEP IP address is changed directly on a host or in vCenter Server, the old IP address of the VTEP is released automatically.
To determine the IP addresses:
- Log in to the ESXi host as root using SSH or direct console.
- Run the esxcfg-vmknic -l command.
- POST https://<nsxmgr-ip>/api/2.0/services/ipam/pools/ipaddresspool-2/ipaddresses
Body:
<ipAddressRequest>
<allocationMode>RESERVE</allocationMode>
<ipAddress>xxx.xxx.xxx.xxx</ipAddress>
</ipAddressRequest>
For more information on how to make API calls to the NSX manager, see the Using the NSX REST API section of the VMware NSX for vSphere API Guide.