Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sample vlan json output
vlan_good = json.loads('''{
"uri": "/vlans/1",
"vlan_id": 1,
"name": "DEFAULT_VLAN",
"status": "VS_PORT_BASED",
"type": "VT_STATIC",
"is_voice_enabled": false,
"is_jumbo_enabled": false,
"is_dsnoop_enabled": false,
"is_dhcp_server_enabled": false
}
''')
vlan_bad = json.loads('''{
"uri": "/vlans/1",
"vlan_id": 5000,
"name": "DEFAULT_VLAN",
"status": "VS_PORT_BASED",
"type": "VT_STATIC",
"is_voice_enabled": false,
"is_jumbo_enabled": false,
"is_dsnoop_enabled": false,
"is_dhcp_server_enabled": false
}
''')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.