From be7f4e1c919ed4812c396b95118611a9f3a1a44a Mon Sep 17 00:00:00 2001 From: vganesan-nokia <67648637+vganesan-nokia@users.noreply.github.com> Date: Fri, 9 Apr 2021 19:03:50 -0400 Subject: [PATCH] [voqinband]Support for inband port as regular port (#145) Signed-off-by: vedganes Inband port is avaialable in PORT table. But regular port handlings are not applicable for Inband port. Changes in this PR are to avoid regular port handling on Inband port for ledd script. --- sonic-ledd/scripts/ledd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-ledd/scripts/ledd b/sonic-ledd/scripts/ledd index 87cea62873a1..88b4ae5cc505 100644 --- a/sonic-ledd/scripts/ledd +++ b/sonic-ledd/scripts/ledd @@ -10,7 +10,7 @@ import sys from sonic_py_common import daemon_base from sonic_py_common import multi_asic -from sonic_py_common.interface import backplane_prefix +from sonic_py_common.interface import backplane_prefix, inband_prefix from swsscommon import swsscommon #============================= Constants ============================= @@ -96,7 +96,7 @@ class DaemonLedd(daemon_base.DaemonBase): fvp_dict = dict(fvp) if op == "SET" and "oper_status" in fvp_dict: - if not key.startswith(backplane_prefix()): + if not key.startswith(backplane_prefix()) and not key.startswith(inband_prefix()): self.led_control.port_link_state_change(key, fvp_dict["oper_status"]) else: return 4