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').
I'm not getting any SOAP errors when I execute the function, so how does one tell if the function has truly worked, and failing that, why it did not?
- Which langauge are you using? The reason that I ask is that the dynamic languages like perl and python can get you into trouble if you are not packaging the arrays properly. If you pass a scalar when an array is expected, the server side will interpret that as a zero sized array and thus return with no error. If you could provide more details and possibly some sample code, I may be able to help diagnose things further.
- rob_carr
Cirrocumulus
I'm trying to create and delete vlans using python, via the SOAPpy module. My code fragment is below: - Ahhh, it's just as I suspected. The method signature for VLAN::create is
Networking.VLAN.create( in String [] vlans, in long [] vlan_ids, in Networking.VLAN.MemberEntry [] [] members, in EnabledState [] failsafe_states, in long [] timeouts, in String [] mac_masquerade_addresses );
- rob_carr
Cirrocumulus
Got it working now:
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