Skip to content

Commit

Permalink
address the test failures in intfutil_test.py
Browse files Browse the repository at this point in the history
Signed-off-by: Dante Su <dante.su@broadcom.com>
  • Loading branch information
ds952811 committed Mar 24, 2022
1 parent 1a2f8d0 commit 2ab19f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/intfutil_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
Ethernet0 not trained on down up
Ethernet32 trained on up up
Ethernet112 off off up up
Ethernet116 off - up up
Ethernet120 off - up up
Ethernet124 off - up up
Ethernet116 - - up up
Ethernet120 - - up up
Ethernet124 - - up up
"""

class TestIntfutil(TestCase):
Expand Down
9 changes: 6 additions & 3 deletions tests/mock_tables/appl_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"adv_speeds": "50000,10000",
"interface_type": "CR4",
"adv_interface_types": "CR4,CR2",
"autoneg": "on"
"autoneg": "on",
"link_training": "on"
},
"PORT_TABLE:Ethernet32": {
"index": "8",
Expand All @@ -55,7 +56,8 @@
"admin_status": "up",
"autoneg": "off",
"adv_speeds": "all",
"adv_interface_types": "all"
"adv_interface_types": "all",
"link_training": "on"
},
"PORT_TABLE:Ethernet112": {
"index": "28",
Expand All @@ -68,7 +70,8 @@
"mtu": "9100",
"tpid": "0x8100",
"fec": "rs",
"admin_status": "up"
"admin_status": "up",
"link_training": "off"
},
"PORT_TABLE:Ethernet116": {
"index": "29",
Expand Down
3 changes: 3 additions & 0 deletions tests/mock_tables/state_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -763,5 +763,8 @@
},
"LINK_TRAINING|Ethernet32": {
"status": "trained"
},
"LINK_TRAINING|Ethernet112": {
"status": "off"
}
}

0 comments on commit 2ab19f3

Please sign in to comment.