Skip to content
Snippets Groups Projects
Commit 14b1680f authored by Erik Reid's avatar Erik Reid
Browse files

added unmanaged-interfaces to config schema

parent f69358a6
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,11 @@ CONFIG_SCHEMA = { ...@@ -6,6 +6,11 @@ CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"definitions": { "definitions": {
"timeout": {
"type": "number",
"maximum": 10, # sanity
"exclusiveMinimum": 0
},
"database-credentials": { "database-credentials": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -50,14 +55,25 @@ CONFIG_SCHEMA = { ...@@ -50,14 +55,25 @@ CONFIG_SCHEMA = {
"additionalProperties": False "additionalProperties": False
}, },
"junosspace-credentials": { "junosspace-credentials": {
"api": {"type": "string"}, "type": "object",
"username": {"type": "string"}, "properties": {
"password": {"type": "string"} "api": {"type": "string"},
"username": {"type": "string"},
"password": {"type": "string"}
},
"required": ["api", "username", "password"],
"additionalProperties": False
}, },
"timeout": { "interface-address": {
"type": "number", "type": "object",
"maximum": 10, # sanity "properties": {
"exclusiveMinimum": 0 "address": {"type": "string"},
"network": {"type": "string"},
"interface": {"type": "string"},
"router": {"type": "string"}
},
"required": ["address", "network", "interface", "router"],
"additionalProperties": False
} }
}, },
...@@ -73,6 +89,10 @@ CONFIG_SCHEMA = { ...@@ -73,6 +89,10 @@ CONFIG_SCHEMA = {
"items": {"type": "integer"} "items": {"type": "integer"}
}, },
"junosspace": {"$ref": "#/definitions/junosspace-credentials"}, "junosspace": {"$ref": "#/definitions/junosspace-credentials"},
"unmanaged-interfaces": {
"type": "array",
"items": {"$ref": "#/definitions/interface-address"}
}
}, },
"oneOf": [ "oneOf": [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment