Skip to content

Commit

Permalink
[voqinband]Support for inband port as regular port (sonic-net#145)
Browse files Browse the repository at this point in the history
Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>

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.
  • Loading branch information
vganesan-nokia authored Apr 9, 2021
1 parent eff5c1c commit be7f4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-ledd/scripts/ledd
Original file line number Diff line number Diff line change
Expand Up @@ -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 =============================
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be7f4e1

Please sign in to comment.