This issue is resolved in NSX-T 2.5.1.
Workaround:
The following workaround can be used to "unblock" the ports on the affected VMs:
1. Identify all the ports that are in a Blocked state, by running the below command
#net-dvs -l | grep -E "port |port.block|volatile.status"2. Identify the port IDs for all connected interfaces on the ESXi host
#net-stats -l3. Match the output of 2 and 3 to see what ports correspond to which vNic interfaces.
4. Identify the N-VDS switch name on the host
#esxcfg-vswitch -l5. Run below command to unblock the ports which are in blocked state
#net-dvs -s com.vmware.common.port.block=false <N-VDS-NameFromStep4> -p <LogicalSwitchPor UUIDfromStep1>Example:
#net-dvs -s com.vmware.common.port.block=false N-VDS-hostswitch -p c2602212-cec6-4783-865a-2e9ae8fe6a716. In a rare event, the VLAN of the port maybe lost as well. To re-add the VLAN back, run:
net-dvs -v <VLAN-ID> -p <LogicalSwitchPortUUIDfromStep1> <N-VDS-NameFromStep4>Example:
net-dvs -v 2081 -p c2602212-cec6-4783-865a-2e9ae8fe6a71 N-VDS-hostswitch