The fix for this issue is actually included in ESX 7.0.2 P03.
Workaround:
STEP1:Find out if E-W and N-S Service Insertion are enabled.
GET /policy/api/v1/infra/settings/service-insertion/security/status/
STEP2: Disable both E-W and N-S SI by placing false value
PUT /policy/api/v1/infra/settings/service-insertion/security/status/ { "north_south_enabled": false, >>>>>>>>>>>>>>>>>>>>>>>>> "east_west_enabled": false, >>>>>>>>>>>>>>>>>>>>>>>>> "resource_type": "PolicySIStatusConfiguration", "id": "status", "display_name": "status", "path": "/infra/settings/service-insertion/security/status", "relative_path": "status", "parent_path": "/infra", "unique_id": "########-####-####-####-##########70", "marked_for_delete": false, "overridden": false, "_create_user": "system", "_create_time": 0, "_last_modified_user": "system", "_last_modified_time": 1613654641196, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }
STEP3: Run below API to validate the logical-switches with .gvm properties
GET /api/v1/logical-switches?diagnostic=true
Finally run below commands to remove any .gvm properties:
net-dvs -u com.vmware.nsx.spf.gvm -p <portid> <dvs-name> net-dvs -u com.vmware.nsx.spf.enabled -p <portid> <dvs-name> net-dvs -u com.vmware.port.extraConfig.serviceInsertion.gvm -p <portID> <dvs-name>
NOTE : This last commands are executed from ESXi host where affected VMs are running.