diff --git a/tests/lldp/test_lldp_syncd.py b/tests/lldp/test_lldp_syncd.py index 975cd002d90..5749f5ee4a1 100644 --- a/tests/lldp/test_lldp_syncd.py +++ b/tests/lldp/test_lldp_syncd.py @@ -179,10 +179,21 @@ def assert_lldp_entry_content(interface, entry_content, lldpctl_interface): chassis_info.get("mgmt-ip", ""), ), ) + + if interface == "eth0": + expected_sys_cap_supported_result = ( + entry_content["lldp_rem_sys_cap_supported"] == "28 00" + or entry_content["lldp_rem_sys_cap_supported"] == "20 00", + ) + else: + expected_sys_cap_supported_result = ( + entry_content["lldp_rem_sys_cap_supported"] == "28 00" + ) pytest_assert( - entry_content["lldp_rem_sys_cap_supported"] == "28 00", + expected_sys_cap_supported_result, "lldp_rem_sys_cap_supported does not match for {}".format(interface), ) + if interface == "eth0": expected_sys_cap_enable_result = ( entry_content["lldp_rem_sys_cap_enabled"] == "28 00"