Forum Discussion
rob_carr
Apr 22, 2008Cirrostratus
Got it working now:
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':'MEMBER_INTERFACE',
'tag_state':'MEMBER_UNTAGGED'}]],
failsafe_states=['0'],
timeouts=['30'],
mac_masquerade_addresses=[''])
Beyond the question of arrays vs. scalar values, I also had to change the member_type and tag_state to their string values rather than the enumerated values listed in the documentation.
Thanks for your help.