Last active
May 16, 2017 19:43
-
-
Save netmanchris/14a15cf36f0fc917632b530da28b0988 to your computer and use it in GitHub Desktop.
VLAN JSON Schema Definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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