Skip to content

Commit

Permalink
add UT for link_training
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <[email protected]>
  • Loading branch information
ds952811 committed May 10, 2022
1 parent c18cc99 commit 2704c2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,8 @@ optional attributes.
"description": "fortyGigE1/1/1",
"mtu": "9100",
"alias": "fortyGigE1/1/1",
"speed": "40000"
"speed": "40000",
"link_training": "off"
},
"Ethernet1": {
"index": "1",
Expand All @@ -1161,9 +1162,10 @@ optional attributes.
"mtu": "9100",
"alias": "fortyGigE1/1/2",
"admin_status": "up",
"speed": "40000"
"speed": "40000",
"link_training": "on"
},
"Ethernet63": {
"Ethernet63": {
"index": "63",
"lanes": "87,88",
"description": "fortyGigE1/4/16",
Expand Down
6 changes: 4 additions & 2 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@
"index": "0",
"asic_port_name": "Eth0-ASIC1",
"role": "Ext",
"macsec": "test"
"macsec": "test",
"link_training": "off"
},
"Ethernet1": {
"alias": "Eth1/2",
Expand All @@ -449,7 +450,8 @@
"admin_status": "up",
"autoneg": "on",
"adv_speeds": "100000,50000",
"adv_interface_types": "CR,CR4"
"adv_interface_types": "CR,CR4",
"link_training": "on"
},
"Ethernet2": {
"alias": "Eth1/3",
Expand Down

0 comments on commit 2704c2f

Please sign in to comment.