Forum Discussion
Setting VLAN on a virtual server
Pulling my hair out trying to enable a VLAN for a virtual server. This is what I'm doing -- "v" is the object reference to LocalLB.VirtualServer:
vlan_filter_list = v.typefactory.create('Common.VLANFilterList')
enabled_state = v.typefactory.create('Common.EnabledState')
vlan_filter_list.state = enabled_state.STATE_ENABLED
vlan_filter_list.vlans = ["external"]
v.set_vlan([vip_name], [vlan_filter_list])
Unfortunately, it throws an exception:
xml.sax._exceptions.SAXParseException: :1:49: syntax error
Any ideas? I'm pretty stuck. :(
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com