Tim_18689
Jan 08, 2013Cirrus
bigsuds-1.01 Need help creating self IP using SelfIPV2.create
I am trying to create a self IP using bigsuds-1.01 and cannot figure the syntax. Here is what I have come up with but I cannot figure out how to specify the 'floating_states' or what I am doing wrong here.
Here is the command I am using and below is the result of running it:
b.Networking.SelfIPV2.create(['self_ips' 'ext-self'], ['vlan_names' 'ext-esnet'], ['addresses' '10.1.214.70'], ['netmasks' '255.255.0.0'], ['traffic_groups' 'none'], ['floating_states', 'STATE_DISABLED'])
>>> import bigsuds
>>> b = bigsuds.BIGIP('10.3.214.70')
>>> b.Networking.VLAN.get_list()
['/Common/ext-esnet']
>>>
>>> b.Networking.SelfIPV2.create(['self_ips' 'ext-self'], ['vlan_names' 'ext-esnet'], ['addresses' '10.1.214.70'], ['netmasks' '255.255.0.0'], ['traffic_groups' 'none'], ['floating_states', 'STATE_DISABLED'])
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0.1-py2.7.egg/bigsuds.py", line 412, in wrapped_method
args, kwargs = arg_processor.process(args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0.1-py2.7.egg/bigsuds.py", line 472, in process
return (self._process_args(args), self._process_kwargs(kwargs))
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0.1-py2.7.egg/bigsuds.py", line 478, in _process_args
newargs.append(self._process_arg(self._argspec[1], arg))
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0.1-py2.7.egg/bigsuds.py", line 540, in _process_arg
obj.items = [self._process_arg(array_type, x) for x in value]
File "/usr/local/lib/python2.7/dist-packages/bigsuds-1.0.1-py2.7.egg/bigsuds.py", line 559, in _process_arg
valid_values))
bigsuds.ArgumentError: "floating_states" is not a valid value for Common.EnabledState, expecting: STATE_DISABLED, STATE_ENABLED