add option to add more than one dns server

Signed-off-by: Marek Küthe <m.k@mk16.de>
This commit is contained in:
Marek Küthe 2022-12-31 14:38:15 +01:00
parent c84e6583ea
commit 4fcab9931a
No known key found for this signature in database
GPG Key ID: 7E869146699108C7
2 changed files with 16 additions and 6 deletions

View File

@ -8,8 +8,8 @@
"fd92:58b6:2b2::/48": {
"description": "Bandura Communications",
"dns": {
"nserver": "ns1.bandura.crxn",
"ds": "3115 15 2 37C7191FD4573523AAECDAAA127B983191B8F06C9CF0270C6B15CFFD609E8AB7"
"nserver": ["ns1.bandura.crxn"],
"ds": ["3115 15 2 37C7191FD4573523AAECDAAA127B983191B8F06C9CF0270C6B15CFFD609E8AB7"]
},
"max-len": "48",
"device": {

View File

@ -37,12 +37,22 @@
"type": "object",
"properties": {
"nserver": {
"type": "string",
"format": "hostname"
"type": "array",
"items": {
"type": "string",
"format": "hostname"
},
"minItems": 1,
"uniqueItems": true
},
"ds": {
"type": "string",
"pattern": "\\d{1,10} ([3-9]|1[0-6]) [1-4] [\\dA-F ]{40,384}"
"type": "array",
"items": {
"type": "string",
"pattern": "\\d{1,10} ([3-9]|1[0-6]) [1-4] [\\dA-F ]{40,384}"
},
"minItems": 1,
"uniqueItems": true
}
},
"required": [