List the vSwitches from ESXI using CLI:
esxcli network vswitch standard list
output example:
vSwitch0
Name: vSwitch0
Class: cswitch
Num Ports: 1234
Used Ports: 7
Configured Ports: 128
MTU: 1500
CDP Status: listen
Beacon Enabled: false
Beacon Interval: 1
Beacon Threshold: 3
Beacon Required By:
Uplinks: vmnic2, vmnic0
Portgroups: VM Network,
Now remove the wrong NIC from the switch0:
esxcli network vswitch standard uplink remove --uplink-name=vmnic2 --vswitch-name=vSwitch0
To add the remove network NIC to vSwitch1:
esxcli network vswitch standard uplink add --uplink-name=vmnic2 --vswitch-name=vSwitch1