Skip to content

Commit 5ad1af9

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 5ad1af9

3 files changed

Lines changed: 41 additions & 30 deletions

File tree

ucentral.schema.full.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -510,19 +510,23 @@
510510
"type": "object",
511511
"properties": {
512512
"port-mirror": {
513-
"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": {
513+
"description": "Enable port mirroring.",
514+
"type": "array",
515+
"items": {
516+
"description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.",
517+
"type": "object",
518+
"properties": {
519+
"monitor-ports": {
520+
"description": "The list of ports that we want to mirror.",
521+
"type": "array",
522+
"items": {
523+
"type": "string"
524+
}
525+
},
526+
"analysis-port": {
527+
"description": "The port that mirror'ed packets should be sent to.",
520528
"type": "string"
521529
}
522-
},
523-
"analysis-port": {
524-
"description": "The port that mirror'ed packets should be sent to.",
525-
"type": "string"
526530
}
527531
}
528532
},

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: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -364,19 +364,23 @@
364364
"type": "object",
365365
"properties": {
366366
"port-mirror": {
367-
"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": {
367+
"description": "Enable port mirroring.",
368+
"type": "array",
369+
"items": {
370+
"description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.",
371+
"type": "object",
372+
"properties": {
373+
"monitor-ports": {
374+
"description": "The list of ports that we want to mirror.",
375+
"type": "array",
376+
"items": {
377+
"type": "string"
378+
}
379+
},
380+
"analysis-port": {
381+
"description": "The port that mirror'ed packets should be sent to.",
374382
"type": "string"
375383
}
376-
},
377-
"analysis-port": {
378-
"description": "The port that mirror'ed packets should be sent to.",
379-
"type": "string"
380384
}
381385
}
382386
},

0 commit comments

Comments
 (0)