Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.