Forum Discussion
JRahm
Jun 06, 2018Admin
Ah...you are supplying the boolean as a string for the tagged state. Remove your quotes and it'll work fine:
v10 = b.tm.net.vlans.vlan.load(name='v10')
v10.interfaces_s.get_collection()
[]
v10.interfaces_s.interfaces.exists(name='1.3')
False
if not v10.interfaces_s.interfaces.exists(name='1.3'):
v10int = v10.interfaces_s.interfaces.create(name='1.3', untagged=True)
v10.interfaces_s.interfaces.exists(name='1.3')
True