Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
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
@@ -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

0 comments on commit be7f4e1

Please sign in to comment.