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'). ...
Apr 22, 2008
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
);
You are passing in scalars for most of the arguments. All of the parameters are expected to be arrays except for the members parameter which is a 2-d array (first dimension for the VLAN, 2nd dimension for the members of that VLAN.
The server code is converting the SOAP message and since there are no arrays, it is treating it as an array size 0 which is a no-op. You'll need to modify your code to pass in the correct arrays for this to work. I'd provide some suggestions, but I'm a definite noob at python.
Good luck!
-Joe
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
