From 5ad1af9bc825fa9808fcbacb588ca96f97c7855d Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Tue, 28 Apr 2026 12:11:34 -0400 Subject: [PATCH] sync: Syncup of port-mirror in switch section with OLS schema. https://telecominfraproject.atlassian.net/browse/OLS-1027 Signed-off-by: Ivan Chvets --- ucentral.schema.full.json | 26 +++++++++++++++----------- ucentral.schema.json | 19 +++++++++++-------- ucentral.schema.pretty.json | 26 +++++++++++++++----------- 3 files changed, 41 insertions(+), 30 deletions(-) diff --git a/ucentral.schema.full.json b/ucentral.schema.full.json index 6b94d79..b8e0b27 100644 --- a/ucentral.schema.full.json +++ b/ucentral.schema.full.json @@ -510,19 +510,23 @@ "type": "object", "properties": { "port-mirror": { - "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", - "type": "object", - "properties": { - "monitor-ports": { - "description": "The list of ports that we want to mirror.", - "type": "array", - "items": { + "description": "Enable port mirroring.", + "type": "array", + "items": { + "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", + "type": "object", + "properties": { + "monitor-ports": { + "description": "The list of ports that we want to mirror.", + "type": "array", + "items": { + "type": "string" + } + }, + "analysis-port": { + "description": "The port that mirror'ed packets should be sent to.", "type": "string" } - }, - "analysis-port": { - "description": "The port that mirror'ed packets should be sent to.", - "type": "string" } } }, diff --git a/ucentral.schema.json b/ucentral.schema.json index ca7e71f..41360f2 100644 --- a/ucentral.schema.json +++ b/ucentral.schema.json @@ -329,16 +329,19 @@ "type": "object", "properties": { "port-mirror": { - "type": "object", - "properties": { - "monitor-ports": { - "type": "array", - "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "monitor-ports": { + "type": "array", + "items": { + "type": "string" + } + }, + "analysis-port": { "type": "string" } - }, - "analysis-port": { - "type": "string" } } }, diff --git a/ucentral.schema.pretty.json b/ucentral.schema.pretty.json index abf0d66..f8da8ea 100644 --- a/ucentral.schema.pretty.json +++ b/ucentral.schema.pretty.json @@ -364,19 +364,23 @@ "type": "object", "properties": { "port-mirror": { - "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", - "type": "object", - "properties": { - "monitor-ports": { - "description": "The list of ports that we want to mirror.", - "type": "array", - "items": { + "description": "Enable port mirroring.", + "type": "array", + "items": { + "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", + "type": "object", + "properties": { + "monitor-ports": { + "description": "The list of ports that we want to mirror.", + "type": "array", + "items": { + "type": "string" + } + }, + "analysis-port": { + "description": "The port that mirror'ed packets should be sent to.", "type": "string" } - }, - "analysis-port": { - "description": "The port that mirror'ed packets should be sent to.", - "type": "string" } } },