Forum Discussion
Tim_18689
Cirrus
Jan 05, 2013Trying to setup basic networking with bigsuds
I am trying write a script to setup basic networking using bigsuds. I am having trouble creating a vlan. I am novice at scripting so I must be making an error.
Here is the simple script to create a vlan:
!/usr/bin/python
netconfig.py
attempt to do basic network setup with icontrol
import bigsuds
b = bigsuds.BIGIP(
hostname = '10.3.213.66',
username = 'admin',
password = 'admin',
)
b.networking.VLAN.create_v2(
vlans, 'ext-esnet',
vlan_ids, 1101,
members, 1.1,
)
Here is the error I get when I try to run it:
$ ./netconfig.py
Traceback (most recent call last):
File "./netconfig.py", line 14, in
b.networking.VLAN.create_v2(
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0-py2.7.egg/bigsuds.py", line 258, in __getattr__
client = self._client_creator('%s.%s' % (self._name, attr))
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0-py2.7.egg/bigsuds.py", line 134, in _create_client
'namespace?' % (e, wsdl_name))
bigsuds.ParseError: :12:2: mismatched tag
Failed to parse wsdl. Is "networking.VLAN" a valid namespace?
Tim T
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