File tree Expand file tree Collapse file tree 5 files changed +79
-5
lines changed Expand file tree Collapse file tree 5 files changed +79
-5
lines changed Original file line number Diff line number Diff line change @@ -1167,7 +1167,8 @@ optional attributes.
1167
1167
"description": "fortyGigE1/1/1",
1168
1168
"mtu": "9100",
1169
1169
"alias": "fortyGigE1/1/1",
1170
- "speed": "40000"
1170
+ "speed": "40000",
1171
+ "link_training": "off"
1171
1172
},
1172
1173
"Ethernet1": {
1173
1174
"index": "1",
@@ -1176,9 +1177,10 @@ optional attributes.
1176
1177
"mtu": "9100",
1177
1178
"alias": "fortyGigE1/1/2",
1178
1179
"admin_status": "up",
1179
- "speed": "40000"
1180
+ "speed": "40000",
1181
+ "link_training": "on"
1180
1182
},
1181
- "Ethernet63": {
1183
+ "Ethernet63": {
1182
1184
"index": "63",
1183
1185
"lanes": "87,88",
1184
1186
"description": "fortyGigE1/4/16",
Original file line number Diff line number Diff line change 438
438
"index" : " 0" ,
439
439
"asic_port_name" : " Eth0-ASIC1" ,
440
440
"role" : " Ext" ,
441
- "macsec" : " test"
441
+ "macsec" : " test" ,
442
+ "link_training" : " off"
442
443
},
443
444
"Ethernet1" : {
444
445
"alias" : " Eth1/2" ,
449
450
"admin_status" : " up" ,
450
451
"autoneg" : " on" ,
451
452
"adv_speeds" : " 100000,50000" ,
452
- "adv_interface_types" : " CR,CR4"
453
+ "adv_interface_types" : " CR,CR4" ,
454
+ "link_training" : " on"
453
455
},
454
456
"Ethernet2" : {
455
457
"alias" : " Eth1/3" ,
Original file line number Diff line number Diff line change 69
69
"desc" : " PORT_INVALID_ADVTYPES_TEST_2 must condition failure." ,
70
70
"eStrKey" : " Must"
71
71
},
72
+ "PORT_VALID_LINK_TRAINING_TEST_1" : {
73
+ "desc" : " PORT_VALID_LINK_TRAINING_TEST_1 no failure."
74
+ },
75
+ "PORT_VALID_LINK_TRAINING_TEST_2" : {
76
+ "desc" : " PORT_VALID_LINK_TRAINING_TEST_2 no failure."
77
+ },
78
+ "PORT_INVALID_LINK_TRAINING_TEST" : {
79
+ "desc" : " PORT_INVALID_LINK_TRAINING_TEST must condition failure." ,
80
+ "eStrKey" : " Pattern" ,
81
+ "eStr" : [" on|off" ]
82
+ },
72
83
"PORT_INVALID_TPID_TEST" : {
73
84
"desc" : " PORT_INVALID_TPID_TEST invalid tpid value failure." ,
74
85
"eStrKey" : " Pattern" ,
Original file line number Diff line number Diff line change 311
311
}
312
312
},
313
313
314
+ "PORT_VALID_LINK_TRAINING_TEST_1" : {
315
+ "sonic-port:sonic-port" : {
316
+ "sonic-port:PORT" : {
317
+ "PORT_LIST" : [
318
+ {
319
+ "name" : " Ethernet8" ,
320
+ "alias" : " eth8" ,
321
+ "lanes" : " 65" ,
322
+ "speed" : 25000 ,
323
+ "tpid" : " 0x8100" ,
324
+ "link_training" : " on"
325
+ }
326
+ ]
327
+ }
328
+ }
329
+ },
330
+
331
+ "PORT_VALID_LINK_TRAINING_TEST_2" : {
332
+ "sonic-port:sonic-port" : {
333
+ "sonic-port:PORT" : {
334
+ "PORT_LIST" : [
335
+ {
336
+ "name" : " Ethernet8" ,
337
+ "alias" : " eth8" ,
338
+ "lanes" : " 65" ,
339
+ "speed" : 25000 ,
340
+ "tpid" : " 0x8100" ,
341
+ "link_training" : " off"
342
+ }
343
+ ]
344
+ }
345
+ }
346
+ },
347
+
348
+ "PORT_INVALID_LINK_TRAINING_TEST" : {
349
+ "sonic-port:sonic-port" : {
350
+ "sonic-port:PORT" : {
351
+ "PORT_LIST" : [
352
+ {
353
+ "name" : " Ethernet8" ,
354
+ "alias" : " eth8" ,
355
+ "lanes" : " 65" ,
356
+ "speed" : 25000 ,
357
+ "tpid" : " 0x8100" ,
358
+ "link_training" : 0
359
+ }
360
+ ]
361
+ }
362
+ }
363
+ },
364
+
314
365
"PORT_INVALID_TPID_TEST" : {
315
366
"sonic-port:sonic-port" : {
316
367
"sonic-port:PORT" : {
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ module sonic-port{
65
65
}
66
66
}
67
67
68
+ leaf link_training {
69
+ description "Port link training mode" ;
70
+
71
+ type string {
72
+ pattern "on|off" ;
73
+ }
74
+ }
75
+
68
76
leaf autoneg {
69
77
description "Port auto negotiation mode" ;
70
78
You can’t perform that action at this time.
0 commit comments