diff --git a/README.md b/README.md index e9257eace8b90d53a8a1b0222940ce64cce0c4c6..93ef44eea42beb5978bfc3bef875c0abf6f8551e 100644 --- a/README.md +++ b/README.md @@ -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 + } + ```