Hi, Oscar. Hope you are doing well, thanks for the reply. I was finally able to set the vlan Id via pySNMP with a different piece of code.
from pysnmp.entity.rfc3413.oneliner import cmdgen
from pysnmp.proto import rfc1902
errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().setCmd(
cmdgen.CommunityData('my-agent', My_Community, 1),
cmdgen.UdpTransportTarget(('192.168.20.10', 161)),
((1,3,6,1,2,1,17,7,1,4,5,1,1,1), rfc1902.Gauge32('201'))
)
print errorIndication
print errorStatus output form the switch:
* (pacman) EXOS-VM.36 # sh port 1 vid
Untagged
Port /Tagged VID(s)
-------- -------- ------------------------------------------------------------
1 Untagged 201
Thanks for trying to help.