Skip to content

Commit d4c087d

Browse files
Cisco-8000 psu led support added (#9264)
1 parent 4ce8483 commit d4c087d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/common/platform/device_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def fanout_switch_port_lookup(fanout_switches, dut_name, dut_port):
3232
def get_dut_psu_line_pattern(dut):
3333
if "201811" in dut.os_version or "201911" in dut.os_version:
3434
psu_line_pattern = re.compile(r"PSU\s+(\d)+\s+(OK|NOT OK|NOT PRESENT)")
35-
elif dut.facts['platform'] == "x86_64-dellemc_z9332f_d1508-r0" or dut.facts['asic_type'] == "cisco-8000":
35+
elif dut.facts['platform'] == "x86_64-dellemc_z9332f_d1508-r0":
3636
psu_line_pattern = re.compile(r"PSU\s+(\d+).*?(OK|NOT OK|NOT PRESENT|WARNING)\s+(N/A)")
3737
else:
3838
"""

tests/platform_tests/cli/test_show_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def test_show_platform_psustatus_json(duthosts, enum_supervisor_dut_hostname):
253253
psu_info_list = json.loads(psu_status_output)
254254

255255
# TODO: Compare against expected platform-specific output
256-
if duthost.facts["platform"] == "x86_64-dellemc_z9332f_d1508-r0" or duthost.facts['asic_type'] == "cisco-8000":
256+
if duthost.facts["platform"] == "x86_64-dellemc_z9332f_d1508-r0":
257257
led_status_list = ["N/A"]
258258
else:
259259
led_status_list = ["green", "amber", "red", "off"]

0 commit comments

Comments
 (0)