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

updated peer-info schema spec

parent 2fd0b549
Branches
Tags
No related merge requests found
...@@ -376,10 +376,10 @@ Any non-empty responses are JSON formatted messages. ...@@ -376,10 +376,10 @@ Any non-empty responses are JSON formatted messages.
then information about the interface is returned, otherwise then information about the interface is returned, otherwise
404 is returned. 404 is returned.
The resp onse 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",
...@@ -402,7 +402,6 @@ Any non-empty responses are JSON formatted messages. ...@@ -402,7 +402,6 @@ Any non-empty responses are JSON formatted messages.
"required": ["name", "description"], "required": ["name", "description"],
"additionalProperties": False "additionalProperties": False
}, },
"ix-public-peer": { "ix-public-peer": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -421,17 +420,24 @@ Any non-empty responses are JSON formatted messages. ...@@ -421,17 +420,24 @@ Any non-empty responses are JSON formatted messages.
}, },
"required": ["name", "description", "as"], "required": ["name", "description", "as"],
"additionalProperties": False "additionalProperties": False
} },
"ix-public-peer-group": {
"type": "array",
"items": {"$ref": "#/definitions/ip-address"}
},
}, },
"type": "object", "type": "object",
"properties": { "properties": {
"ix-public-peer-info": {"$ref": "#/definitions/ix-public-peer"}, "ix-public-peer-info": {"$ref": "#/definitions/ix-public-peer"},
"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"}
}, },
"additionalProperties": False "additionalProperties": False
} }
``` ```
* /poller/interfaces/*`hostname`* * /poller/interfaces/*`hostname`*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment