Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions tests/platform_tests/test_intf_fec.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"mlnx_msn",
"8101_32fh",
"8111_32eh",
"arista"
"arista",
"x86_64-88_lc0_36fh_m-r0"
]

SUPPORTED_SPEEDS = [
Expand Down Expand Up @@ -78,8 +79,10 @@ def test_config_fec_oper_mode(duthosts, enum_rand_one_per_hwsku_frontend_hostnam
if fec_mode == "n/a":
pytest.fail("FEC status is N/A for interface {}".format(intf))

config_status = duthost.command("sudo config interface fec {} {}"
.format(intf, fec_mode))
asic_cli_option = duthost.get_port_asic_instance(intf).cli_ns_option

config_status = duthost.command("sudo config interface {} fec {} {}"
.format(asic_cli_option, intf, fec_mode))
if config_status:
pytest_assert(wait_until(30, 2, 0, duthost.is_interface_status_up, intf),
"Interface {} did not come up after configuring FEC mode".format(intf))
Expand Down Expand Up @@ -177,7 +180,9 @@ def get_fec_histogram(duthost, intf_name):
"""
try:
logging.info("Get output of 'show interfaces counters fec-histogram {}'".format(intf_name))
fec_hist = duthost.show_and_parse("show interfaces counters fec-histogram {}".format(intf_name))
asic_cli_option = duthost.get_port_asic_instance(intf_name).cli_ns_option
fec_hist = duthost.show_and_parse("show interfaces counters fec-histogram {} {}".format(asic_cli_option,
intf_name))
except Exception as e:
logging.error("Failed to execute 'show interfaces counters fec-histogram {}': {}".format(intf_name, e))
pytest.skip("Command 'show interfaces counters fec-histogram {}' not found \
Expand Down
Loading