From 3e689a16ef9e81f3f0cf197b72a8e51f099071e9 Mon Sep 17 00:00:00 2001 From: Jibin Bao Date: Tue, 11 Apr 2023 17:06:42 +0800 Subject: [PATCH] update sfp eeprom case Because the cable of OSFP does not support some keys Change-Id: I900c6c018196e5ec33dcd6ca542b1f13015a1101 --- tests/platform_tests/mellanox/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/platform_tests/mellanox/util.py b/tests/platform_tests/mellanox/util.py index 5f0a4b956d9..23c11d8e8a6 100644 --- a/tests/platform_tests/mellanox/util.py +++ b/tests/platform_tests/mellanox/util.py @@ -215,7 +215,8 @@ def check_sfp_eeprom_info(duthost, sfp_eeprom_info, is_support_dom, show_eeprom_ ["Application Advertisement", "ChannelThresholdValues", "ModuleThresholdValues"]) expected_keys = expected_keys - excluded_keys - if "Identifier" in sfp_eeprom_info and sfp_eeprom_info["Identifier"] == "SFP/SFP+/SFP28": + sfp_type_for_excluded_monitor_threshold_key = ["SFP/SFP+/SFP28", "OSFP 8X Pluggable Transceiver"] + if "Identifier" in sfp_eeprom_info and sfp_eeprom_info["Identifier"] in sfp_type_for_excluded_monitor_threshold_key: excluded_keys = excluded_keys | {"ChannelMonitorValues", "ChannelThresholdValues", "ModuleMonitorValues", "ModuleThresholdValues"} expected_keys = (expected_keys | {