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, 2008I'm trying to create and delete vlans using python, via the SOAPpy module. My code fragment is below:
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':'1',
'tag_state':'1'}]],
failsafe_states='0',
timeouts='30',
mac_masquerade_addresses='')
I know that my url is constructed properly, as I have other segments of code where I query for interface status, vlan membership, etc.
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