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

add required list to service info schema

parent a5adbc12
Branches
Tags
No related merge requests found
......@@ -44,8 +44,6 @@ JUNIPER_LINK_METADATA = {
"required": ["name", "description", "ipv4", "ipv6"],
"additionalProperties": False
},
# TODO: modify service-info so that "" entries are just omitted
# (... rather than requiring 'oneOf')
"service-info": {
"type": "object",
"properties": {
......@@ -76,7 +74,15 @@ JUNIPER_LINK_METADATA = {
"interface_name": {"type": "string"},
"other_end_interface_name": {"type": "string"}
},
# "required": ["name", "description", "ipv4", "ipv6"],
# TODO: modify service-info so that "" entries are just omitted
# (... rather than requiring 'oneOf')
# TODO: put 'other_end_*' params in a sub dictionary
"required": [
"id", "name", "status",
"circuit_type", "service_type",
"project", "port", "manufacturer",
"equipment", "logical_unit", "card_id", "interface_name"
],
"additionalProperties": False
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment