Skip to content

Instantly share code, notes, and snippets.

@netmanchris
Last active May 16, 2017 19:43
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/14a15cf36f0fc917632b530da28b0988 to your computer and use it in GitHub Desktop.
Save netmanchris/14a15cf36f0fc917632b530da28b0988 to your computer and use it in GitHub Desktop.
VLAN JSON Schema Definition
schema = json.loads('''{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "VLAN configuration data.",
"title": "Vlan",
"type": "object",
"sql.max_rows": 4094,
"properties": {
"uri": {
"description": "The URI of the configuration entity",
"type": "string",
"readonly": true
},
"vlan_id": {
"description": "The unique ID of the VLAN. IEEE 802.1Q VLAN identifier (VID)",
"minimum": 1,
"maximum": 4094,
"type": "integer",
"sql.not_null": true
}
},
"additionalProperties": true
}''')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment