From 4a890b0003a5c0d9c131f1da46197a16e979b024 Mon Sep 17 00:00:00 2001 From: Borys Barkauskas Date: Mon, 29 May 2023 12:56:49 +0000 Subject: [PATCH] [xcvrd] Fix crash with subinterfaces Signed-off-by: Anton Parkhomenko --- sonic-xcvrd/xcvrd/xcvrd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-xcvrd/xcvrd/xcvrd.py b/sonic-xcvrd/xcvrd/xcvrd.py index e052e4cc1..a1354e5d3 100644 --- a/sonic-xcvrd/xcvrd/xcvrd.py +++ b/sonic-xcvrd/xcvrd/xcvrd.py @@ -984,7 +984,7 @@ def on_port_update_event(self, port_change_event): return # Skip if it's not a physical port - if not lport.startswith('Ethernet'): + if not re.match('^Ethernet[0-9]*$', lport): return # Skip if the physical index is not available