Skip to content

Instantly share code, notes, and snippets.

@netmanchris
Last active May 16, 2017 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netmanchris/bff9210e365837ff729c510a9280cf7c to your computer and use it in GitHub Desktop.
Save netmanchris/bff9210e365837ff729c510a9280cf7c to your computer and use it in GitHub Desktop.
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