Forum Discussion
rob_carr
Apr 22, 2008Cirrostratus
I'm trying to create and delete vlans using python, via the SOAPpy module. My code fragment is below:
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':'1',
'tag_state':'1'}]],
failsafe_states='0',
timeouts='30',
mac_masquerade_addresses='')
I know that my url is constructed properly, as I have other segments of code where I query for interface status, vlan membership, etc.