Thanks Luc,
but very specifically i want to enable vlan stats and to get allowed vlan info on both physical nic connected to vss.
so i tried
following how to use these methods do i need to put .invoke() or what is the correct syntax .
esxi shell equvalent are
esxcli network nic vlan stats set -e true -n vmnic2
and then run the following command to retrieve all VLAN stats for that given vmnic interface (replace with the vmnic of choice):
esxcli network nic vlan stats get -n vmnic2