VMware NSX
ESXi hosts were removed from the vCenter inventory or a cluster without being properly decommissioned or "unprepared" from NSX first. This leaves residual metadata, logical port attachments, and transport node records in the NSX Management Plane database. If the host was part of an NVDS-to-VDS migration, it may also have a persistent association with the VDS topology.
corfu_tool_runner.py script on the NSX Manager.HostTransportNodeTransportNodeStateHostModelMsgGET /api/v1/logical-ports?transport_node_id=<node-id>NSX-3.1.X-stale-lports-cleanup-v1.py).DELETE https://<nsx-mgr-ip>/api/v1/transport-nodes/<node-id>?force=true