Skip to content

Commit d55d0c6

Browse files
committed
sync: Syncup of port-mirror in switch section with OLS schema.
https://telecominfraproject.atlassian.net/browse/OLS-1027 Signed-off-by: Ivan Chvets <ivan.chvets@kinarasystems.com>
1 parent 4d4d459 commit d55d0c6

3 files changed

Lines changed: 37 additions & 28 deletions

File tree

ucentral.schema.full.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -511,18 +511,21 @@
511511
"properties": {
512512
"port-mirror": {
513513
"description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.",
514-
"type": "object",
515-
"properties": {
516-
"monitor-ports": {
517-
"description": "The list of ports that we want to mirror.",
518-
"type": "array",
519-
"items": {
514+
"type": "array",
515+
"items": {
516+
"type": "object",
517+
"properties": {
518+
"monitor-ports": {
519+
"description": "The list of ports that we want to mirror.",
520+
"type": "array",
521+
"items": {
522+
"type": "string"
523+
}
524+
},
525+
"analysis-port": {
526+
"description": "The port that mirror'ed packets should be sent to.",
520527
"type": "string"
521528
}
522-
},
523-
"analysis-port": {
524-
"description": "The port that mirror'ed packets should be sent to.",
525-
"type": "string"
526529
}
527530
}
528531
},

ucentral.schema.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,19 @@
329329
"type": "object",
330330
"properties": {
331331
"port-mirror": {
332-
"type": "object",
333-
"properties": {
334-
"monitor-ports": {
335-
"type": "array",
336-
"items": {
332+
"type": "array",
333+
"items": {
334+
"type": "object",
335+
"properties": {
336+
"monitor-ports": {
337+
"type": "array",
338+
"items": {
339+
"type": "string"
340+
}
341+
},
342+
"analysis-port": {
337343
"type": "string"
338344
}
339-
},
340-
"analysis-port": {
341-
"type": "string"
342345
}
343346
}
344347
},

ucentral.schema.pretty.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -365,18 +365,21 @@
365365
"properties": {
366366
"port-mirror": {
367367
"description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.",
368-
"type": "object",
369-
"properties": {
370-
"monitor-ports": {
371-
"description": "The list of ports that we want to mirror.",
372-
"type": "array",
373-
"items": {
368+
"type": "array",
369+
"items": {
370+
"type": "object",
371+
"properties": {
372+
"monitor-ports": {
373+
"description": "The list of ports that we want to mirror.",
374+
"type": "array",
375+
"items": {
376+
"type": "string"
377+
}
378+
},
379+
"analysis-port": {
380+
"description": "The port that mirror'ed packets should be sent to.",
374381
"type": "string"
375382
}
376-
},
377-
"analysis-port": {
378-
"description": "The port that mirror'ed packets should be sent to.",
379-
"type": "string"
380383
}
381384
}
382385
},

0 commit comments

Comments
 (0)