Forum Discussion
rob_carr
Cirrocumulus
Apr 22, 2008Trying to add a vlan to my config.
I'm trying to programmatically add a vlan to my running config. Of course, the create function in iControl::Networking::VLAN returns nothing (literally - the wiki for the api says 'null'). ...
rob_carr
Cirrocumulus
Apr 22, 2008Got it working now:
def create_vlan(url):
db_proxy = SOAPpy.SOAPProxy(url,ICONTROL_VLAN_NAMESPACE)
results = db_proxy.create(vlans=['failsave_vlan'],
vlan_ids=['3001'],
members=[[{'member_name':'1.3',
'member_type':'MEMBER_INTERFACE',
'tag_state':'MEMBER_UNTAGGED'}]],
failsafe_states=['0'],
timeouts=['30'],
mac_masquerade_addresses=[''])
Beyond the question of arrays vs. scalar values, I also had to change the member_type and tag_state to their string values rather than the enumerated values listed in the documentation.
Thanks for your help.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects