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

added vpn rr schema

parent 447ac04d
No related branches found
No related tags found
No related merge requests found
......@@ -606,17 +606,21 @@ Any non-empty responses are JSON formatted messages.
* valid values:
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"definitions": {
"ip-address": {
"type": "string",
"oneOf": [
{"pattern": r'^(\d+\.){3}\d+$'},
{"pattern": r'^([a-f\d]{4}:){7}[a-f\d]{4}$'}
]
},
}
},
"type": "object",
"properties": {
"name": {"$ref": "#/definitions/ip-address"},
"description": {"type": "string"},
"as": {
"type": "object",
......@@ -632,3 +636,32 @@ Any non-empty responses are JSON formatted messages.
"additionalProperties": False
}
```
`vpn_rr_peers/<address>`
* key examples
* `ix_public_peer:193.203.0.203`
* valid values:
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ip-address": {
"type": "string",
"oneOf": [
{"pattern": r'^(\d+\.){3}\d+$'},
{"pattern": r'^([a-f\d]{4}:){7}[a-f\d]{4}$'}
]
}
},
"type": "object",
"properties": {
"name": {"$ref": "#/definitions/ip-address"},
"description": {"type": "string"},
"peer-as": {"type": "integer"}
},
"required": ["name", "description"],
"additionalProperties": False
}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment