From cd7d50997c4db01637a3b80ffc106b72705e0f10 Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Thu, 27 Mar 2025 11:37:06 +0800 Subject: [PATCH 1/2] OLS-644: Global DNS configuration Signed-off-by: Tanya Singh --- ucentral.schema.full.json | 7 +++++++ ucentral.schema.json | 6 ++++++ ucentral.schema.pretty.json | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/ucentral.schema.full.json b/ucentral.schema.full.json index 5615e10..58de3ef 100644 --- a/ucentral.schema.full.json +++ b/ucentral.schema.full.json @@ -1803,6 +1803,13 @@ } } } + }, + "dns": { + "description": "Define a list of dns servers", + "type": "array", + "items": { + "type": "string" + } } } }, diff --git a/ucentral.schema.json b/ucentral.schema.json index 934ca32..871cb5c 100644 --- a/ucentral.schema.json +++ b/ucentral.schema.json @@ -1564,6 +1564,12 @@ }, "acl": { "$ref": "#/$defs/switch.acl" + }, + "dns": { + "type": "array", + "items": { + "type": "string" + } } } }, diff --git a/ucentral.schema.pretty.json b/ucentral.schema.pretty.json index 415b146..a73bb84 100644 --- a/ucentral.schema.pretty.json +++ b/ucentral.schema.pretty.json @@ -1848,6 +1848,13 @@ }, "acl": { "$ref": "#/$defs/switch.acl" + }, + "dns": { + "description": "Define a list of dns servers", + "type": "array", + "items": { + "type": "string" + } } } }, From 029cdb4ed97d29aa67b433d67e42e3000502995a Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Thu, 10 Apr 2025 17:13:03 +0800 Subject: [PATCH 2/2] OLS-644: Add Global DNS to switch.yml and use generate.sh to create the json files Signed-off-by: Tanya Singh --- capabilities/connect.capabilities.yml | 1 + schema/switch.yml | 5 +++++ ucentral.capabilities.pretty.json | 1 + ucentral.schema.full.json | 2 +- ucentral.schema.pretty.json | 2 +- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/capabilities/connect.capabilities.yml b/capabilities/connect.capabilities.yml index 6fcbd9e..a8b0c08 100644 --- a/capabilities/connect.capabilities.yml +++ b/capabilities/connect.capabilities.yml @@ -300,6 +300,7 @@ properties: - Service-Online-Check - Service-CaptivePortal - Service-PublicIpCheck + - Service-Global-DNS # Tunneling - Tunneling-VxLAN - Tunneling-GRE diff --git a/schema/switch.yml b/schema/switch.yml index 3801d7d..73e9379 100644 --- a/schema/switch.yml +++ b/schema/switch.yml @@ -545,3 +545,8 @@ properties: $ref: "https://ucentral.io/schema/v1/switch/rtevent/" acl: $ref: "https://ucentral.io/schema/v1/switch/acl/" + dns: + description: Define a global list of dns servers. + type: array + items: + type: string diff --git a/ucentral.capabilities.pretty.json b/ucentral.capabilities.pretty.json index 3e424af..420295c 100644 --- a/ucentral.capabilities.pretty.json +++ b/ucentral.capabilities.pretty.json @@ -361,6 +361,7 @@ "Service-Online-Check", "Service-CaptivePortal", "Service-PublicIpCheck", + "Service-Global-DNS", "Tunneling-VxLAN", "Tunneling-GRE", "Tunneling-GRE6", diff --git a/ucentral.schema.full.json b/ucentral.schema.full.json index 58de3ef..2411d61 100644 --- a/ucentral.schema.full.json +++ b/ucentral.schema.full.json @@ -1805,7 +1805,7 @@ } }, "dns": { - "description": "Define a list of dns servers", + "description": "Define a global list of dns servers.", "type": "array", "items": { "type": "string" diff --git a/ucentral.schema.pretty.json b/ucentral.schema.pretty.json index a73bb84..4d61e7d 100644 --- a/ucentral.schema.pretty.json +++ b/ucentral.schema.pretty.json @@ -1850,7 +1850,7 @@ "$ref": "#/$defs/switch.acl" }, "dns": { - "description": "Define a list of dns servers", + "description": "Define a global list of dns servers.", "type": "array", "items": { "type": "string"