Skip to content

Commit be7f4e1

Browse files
[voqinband]Support for inband port as regular port (sonic-net#145)
Signed-off-by: vedganes <[email protected]> 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.
1 parent eff5c1c commit be7f4e1

File tree

1 file changed

+2
-2
lines changed
  • sonic-ledd/scripts

1 file changed

+2
-2
lines changed

sonic-ledd/scripts/ledd

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import sys
1010

1111
from sonic_py_common import daemon_base
1212
from sonic_py_common import multi_asic
13-
from sonic_py_common.interface import backplane_prefix
13+
from sonic_py_common.interface import backplane_prefix, inband_prefix
1414
from swsscommon import swsscommon
1515

1616
#============================= Constants =============================
@@ -96,7 +96,7 @@ class DaemonLedd(daemon_base.DaemonBase):
9696
fvp_dict = dict(fvp)
9797

9898
if op == "SET" and "oper_status" in fvp_dict:
99-
if not key.startswith(backplane_prefix()):
99+
if not key.startswith(backplane_prefix()) and not key.startswith(inband_prefix()):
100100
self.led_control.port_link_state_change(key, fvp_dict["oper_status"])
101101
else:
102102
return 4

0 commit comments

Comments
 (0)