File tree 4 files changed +7
-82
lines changed
4 files changed +7
-82
lines changed Original file line number Diff line number Diff line change 2041
2041
"direction" : " RX" ,
2042
2042
"type" : " SPAN" ,
2043
2043
"dst_port" : " Ethernet2" ,
2044
- "src_port" : [
2045
- " Ethernet3" ,
2046
- " Ethernet4"
2047
- ]
2048
-
2044
+ "src_port" : " Ethernet3,Ethernet4"
2049
2045
}
2050
2046
},
2051
2047
Original file line number Diff line number Diff line change 72
72
"MIRROR_ERSPAN_ENTRY_VALID_SRC_PORTCHANNEL" : {
73
73
"desc" : " Configuring ERSPAN entry with valid source portchannel"
74
74
},
75
- "MIRROR_ERSPAN_ENTRY_INVALID_SRC_PORT" : {
76
- "desc" : " Configuring ERSPAN entry with invalid source port" ,
77
- "eStrKey" : " InvalidValue"
78
- },
79
75
"MIRROR_SPAN_ENTRY_WITH_VALID_VALUES" : {
80
76
"desc" : " Configuring SPAN entry with valid source and destination ports"
81
77
},
90
86
"MIRROR_SPAN_ENTRY_VALID_DST_PORT_CPU" : {
91
87
"desc" : " Configuring SPAN entry with valid destination port CPU"
92
88
},
93
- "MIRROR_SPAN_ENTRY_INVALID_SRC_PORT" : {
94
- "desc" : " Configuring SPAN entry with invalid destination ports" ,
95
- "eStrKey" : " InvalidValue"
96
- },
97
89
"MIRROR_SPAN_ENTRY_INVALID_DIRECTION" : {
98
90
"desc" : " Configuring SPAN entry with invalid direction" ,
99
91
"eStrKey" : " InvalidValue"
Original file line number Diff line number Diff line change 316
316
"gre_type" : " 0x1234" ,
317
317
"dscp" : " 10" ,
318
318
"ttl" : " 63" ,
319
- "src_port" : [
320
- " Ethernet0"
321
- ]
319
+ "src_port" : " Ethernet0"
322
320
}
323
321
]
324
322
}
346
344
"gre_type" : " 0x1234" ,
347
345
"dscp" : " 10" ,
348
346
"ttl" : " 63" ,
349
- "src_port" : [
350
- " PortChannel5"
351
- ]
352
- }
353
- ]
354
- }
355
- }
356
- },
357
- "MIRROR_ERSPAN_ENTRY_INVALID_SRC_PORT" : {
358
- "sonic-mirror-session:sonic-mirror-session" : {
359
- "MIRROR_SESSION" : {
360
- "MIRROR_SESSION_LIST" : [
361
- {
362
- "name" : " erspan" ,
363
- "type" : " ERSPAN" ,
364
- "dst_ip" : " 11.1.1.1" ,
365
- "src_ip" : " 10.1.1.1" ,
366
- "gre_type" : " 0x1234" ,
367
- "dscp" : " 10" ,
368
- "ttl" : " 63" ,
369
- "src_port" : [
370
- " Ethernet0"
371
- ]
347
+ "src_port" : " PortChannel5"
372
348
}
373
349
]
374
350
}
415
391
"name" : " span" ,
416
392
"type" : " SPAN" ,
417
393
"dst_port" : " Ethernet0" ,
418
- "src_port" : [
419
- " Ethernet4" ,
420
- " Ethernet8"
421
- ],
394
+ "src_port" : " Ethernet4,Ethernet8" ,
422
395
"direction" : " RX"
423
396
}
424
397
]
479
452
}
480
453
}
481
454
},
482
- "MIRROR_SPAN_ENTRY_INVALID_SRC_PORT" : {
483
- "sonic-port:sonic-port" : {
484
- "sonic-port:PORT" : {
485
- "PORT_LIST" : [
486
- {
487
- "admin_status" : " up" ,
488
- "alias" : " eth0" ,
489
- "description" : " Ethernet0" ,
490
- "lanes" : " 1" ,
491
- "mtu" : 9000 ,
492
- "name" : " Ethernet0" ,
493
- "speed" : 25000
494
- }
495
- ]
496
- }
497
- },
498
- "sonic-mirror-session:sonic-mirror-session" : {
499
- "MIRROR_SESSION" : {
500
- "MIRROR_SESSION_LIST" : [
501
- {
502
- "name" : " span" ,
503
- "type" : " SPAN" ,
504
- "dst_port" : " Ethernet0" ,
505
- "src_port" : [
506
- " Ethernet4"
507
- ]
508
- }
509
- ]
510
- }
511
- }
512
- },
513
455
"MIRROR_SPAN_ENTRY_INVALID_DIRECTION" : {
514
456
"sonic-port:sonic-port" : {
515
457
"sonic-port:PORT" : {
Original file line number Diff line number Diff line change @@ -154,14 +154,9 @@ module sonic-mirror-session {
154
154
"Destination port configuration for port mirroring(SPAN)." ;
155
155
}
156
156
157
- leaf-list src_port {
158
- type union {
159
- type leafref {
160
- path "/port:sonic-port/port:PORT/port:PORT_LIST/port:name" ;
161
- }
162
- type leafref {
163
- path "/lag:sonic-portchannel/lag:PORTCHANNEL/lag:PORTCHANNEL_LIST/lag:name" ;
164
- }
157
+ leaf src_port {
158
+ type string {
159
+ length 1 ..2048 ;
165
160
}
166
161
description
167
162
"Source port configuration for mirroring. Can be configured for both SPAN/ERSPAN.
You can’t perform that action at this time.
0 commit comments