From 26b9a9650614b03af69a319f2044515513ea1757 Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Tue, 10 Dec 2024 08:53:01 -0500 Subject: [PATCH] fix: updated internal switch schema https://telecominfraproject.atlassian.net/browse/OLS-433 Summary of changes: - Updated internal switch schema. Signed-off-by: Ivan Chvets --- src/framework/ConfigurationValidator.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/framework/ConfigurationValidator.cpp b/src/framework/ConfigurationValidator.cpp index 06cb469d..4391d879 100644 --- a/src/framework/ConfigurationValidator.cpp +++ b/src/framework/ConfigurationValidator.cpp @@ -376,18 +376,21 @@ static std::string DefaultAPSchema = R"foo( "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": { + "type": "array", + "items": { + "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" } } },