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

improve test schema

parent 6b957d81
Branches
Tags
No related merge requests found
......@@ -132,6 +132,23 @@ JUNIPER_LINK_METADATA_DEFINITIONS = {
# "equipment", "logical_unit", "card_id", "interface_name"
# ],
"additionalProperties": False
},
"related-service-info": {
"type": "object",
"properties": {
"name": {"type": "string"},
"status": {
"type": "string",
"enum": ["operational", "installed", "planned", "ordered"]
},
"circuit_type": {
"type": "string",
"enum": ["path", "service", "l2circuit"]
},
"project": {"type": "string"}
},
"required": ["name", "status", "circuit_type", "project"],
"additionalProperties": False
}
}
......@@ -152,7 +169,7 @@ JUNIPER_LINK_METADATA = {
"interface": {"$ref": "#/definitions/interface-info"},
"related-services": {
"type": "array",
"items": {"$ref": "#/definitions/service-info"}
"items": {"$ref": "#/definitions/related-service-info"}
},
"locations": {"$ref": "#/definitions/locations-list"}
},
......
......@@ -82,6 +82,23 @@ INFINERA_LINK_METADATA_DEFINITIONS = {
},
"additionalProperties": False
},
"related-service-info": {
"type": "object",
"properties": {
"name": {"type": "string"},
"status": {
"type": "string",
"enum": ["operational", "installed", "planned", "ordered"]
},
"circuit_type": {
"type": "string",
"enum": ["path", "service", "l2circuit"]
},
"project": {"type": "string"}
},
"required": ["name", "status", "circuit_type", "project"],
"additionalProperties": False
},
"geant-lambda": {
"type": "object",
"properties": {
......@@ -113,7 +130,7 @@ INFINERA_LINK_METADATA = {
},
"related-services": {
"type": "array",
"items": {"$ref": "#/definitions/service-info"}
"items": {"$ref": "#/definitions/related-service-info"}
},
"geant-lambda": {
"$ref": "#/definitions/geant-lambda"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment