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

added doc for /classifier/peer-info

parent 6ce8e708
No related branches found
No related tags found
No related merge requests found
...@@ -355,7 +355,7 @@ Any non-empty responses are JSON formatted messages. ...@@ -355,7 +355,7 @@ Any non-empty responses are JSON formatted messages.
alarms database alarms database
* /classifier/*`type`*/*`source-equipment`*/*`source-interface`* * /classifier/trap-metadata/*`source-equipment`*/*`source-interface`*
The source-equipment is the equipment that causes the trap, not the NMS that The source-equipment is the equipment that causes the trap, not the NMS that
sends it. sends it.
...@@ -369,6 +369,71 @@ Any non-empty responses are JSON formatted messages. ...@@ -369,6 +369,71 @@ Any non-empty responses are JSON formatted messages.
} }
``` ```
* /classifier/peer-info/*`address`*
The `address` parameter should be the ip address of
a remote peer. If this address is found in the system
then information about the interface is returned, otherwise
404 is returned.
The resp onse will be formatted according to the following syntax:
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {
"ip-address": {
"type": "string",
"oneOf": [
{"pattern": r'^(\d+\.){3}\d+$'},
{"pattern": r'^([a-f\d]{4}:){7}[a-f\d]{4}$'}
]
},
"vpn-rr-peer": {
"type": "object",
"properties": {
"name": {"$ref": "#/definitions/ip-address"},
"description": {"type": "string"},
"peer-as": {"type": "integer"},
"router": {"type": "string"}
},
"required": ["name", "description"],
"additionalProperties": False
},
"ix-public-peer": {
"type": "object",
"properties": {
"name": {"$ref": "#/definitions/ip-address"},
"description": {"type": "string"},
"router": {"type": "string"},
"as": {
"type": "object",
"properties": {
"local": {"type": "integer"},
"peer": {"type": "integer"},
},
"required": ["local", "peer"],
"additionalProperties": False
}
},
"required": ["name", "description", "as"],
"additionalProperties": False
}
},
"type": "object",
"properties": {
"ix-public-peer-info": {"$ref": "#/definitions/ix-public-peer"},
"vpn-rr-peer-info": {"$ref": "#/definitions/vpn-rr-peer"}
},
"additionalProperties": False
}
```
* /poller/interfaces/*`hostname`* * /poller/interfaces/*`hostname`*
The response will be the list of active interfaces on the The response will be the list of active interfaces on the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment