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
Tags 0.44
No related merge requests found
......@@ -6,6 +6,11 @@ CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"timeout": {
"type": "number",
"maximum": 10, # sanity
"exclusiveMinimum": 0
},
"database-credentials": {
"type": "object",
"properties": {
......@@ -50,14 +55,25 @@ CONFIG_SCHEMA = {
"additionalProperties": False
},
"junosspace-credentials": {
"api": {"type": "string"},
"username": {"type": "string"},
"password": {"type": "string"}
"type": "object",
"properties": {
"api": {"type": "string"},
"username": {"type": "string"},
"password": {"type": "string"}
},
"required": ["api", "username", "password"],
"additionalProperties": False
},
"timeout": {
"type": "number",
"maximum": 10, # sanity
"exclusiveMinimum": 0
"interface-address": {
"type": "object",
"properties": {
"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 = {
"items": {"type": "integer"}
},
"junosspace": {"$ref": "#/definitions/junosspace-credentials"},
"unmanaged-interfaces": {
"type": "array",
"items": {"$ref": "#/definitions/interface-address"}
}
},
"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