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

updated peer-info schema spec

parent b85e951f
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ Any non-empty responses are JSON formatted messages. ...@@ -379,7 +379,7 @@ Any non-empty responses are JSON formatted messages.
The response will be formatted according to the following syntax: The response will be formatted according to the following syntax:
```json ```json
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
...@@ -428,10 +428,20 @@ Any non-empty responses are JSON formatted messages. ...@@ -428,10 +428,20 @@ Any non-empty responses are JSON formatted messages.
"required": ["name", "description", "as"], "required": ["name", "description", "as"],
"additionalProperties": False "additionalProperties": False
}, },
"ix-public-peer-group": { "ix-public-peer-list": {
"type": "array", "type": "array",
"items": {"$ref": "#/definitions/ip-address"} "items": {"$ref": "#/definitions/ip-address"}
}, },
"ix-public-peer-info": {
"type": "object",
"properties": {
"peer": {"$ref": "#/definitions/ix-public-peer"},
"group": {"$ref": "#/definitions/ix-public-peer-list"},
"router": {"$ref": "#/definitions/ix-public-peer-list"}
},
"required": ["peer", "group", "router"],
"additionalProperties": False
},
"interface-info": { "interface-info": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -462,9 +472,7 @@ Any non-empty responses are JSON formatted messages. ...@@ -462,9 +472,7 @@ Any non-empty responses are JSON formatted messages.
"type": "object", "type": "object",
"properties": { "properties": {
"ix-public-peer-info": {"$ref": "#/definitions/ix-public-peer"}, "ix-public-peer-info": {"$ref": "#/definitions/ix-public-peer-info"},
"ix-public-peer-group": {
"$ref": "#/definitions/ix-public-peer-group"},
"vpn-rr-peer-info": {"$ref": "#/definitions/vpn-rr-peer"}, "vpn-rr-peer-info": {"$ref": "#/definitions/vpn-rr-peer"},
"interfaces": { "interfaces": {
"type": "array", "type": "array",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment