Skip to content

Instantly share code, notes, and snippets.

@ganeshrn
Created December 14, 2020 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganeshrn/aef7f74d132199b5ddb379d49fe314f7 to your computer and use it in GitHub Desktop.
Save ganeshrn/aef7f74d132199b5ddb379d49fe314f7 to your computer and use it in GitHub Desktop.
bgp_data_model_criteria
{
"patternProperties": {
".*" : { "$ref" : "#/definitions/router" }
},
"minProperties": 1,
"definitions": {
"router" : {
"type" : "object",
"properties": {
"bgp_as": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"hostname": {
"type": "string"
}
},
"required": [ "bgp_as","hostname" ]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment