From 78f9dbe4e8f08bb58d2f374c53c79186f789ea50 Mon Sep 17 00:00:00 2001 From: Itamar Talmon Date: Thu, 24 Feb 2022 11:23:22 +0200 Subject: [PATCH] Added support for InfinibandX port prefix --- sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py b/sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py index aa4af02d1..ea70b6bef 100644 --- a/sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py +++ b/sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py @@ -102,7 +102,7 @@ def format_mapping_identifier(string): def logical_port_name_to_physical_port_list(port_name): - if port_name.startswith("Ethernet"): + if re.match(swsscommon.FRONT_PANEL_PORT_PREFIX_REGEX, port_name): if y_cable_platform_sfputil.is_logical_port(port_name): return y_cable_platform_sfputil.get_logical_to_physical(port_name) else: