File tree 3 files changed +24
-1
lines changed
platform/vs/docker-sonic-vs
src/sonic-py-common/sonic_py_common
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
from sonic_py_common import daemon_base
24
24
from swsscommon import swsscommon
25
+ from sonic_py_common .interface import inband_prefix
25
26
except ImportError as err :
26
27
raise ImportError ("%s - required module not found" % str (err ))
27
28
@@ -94,6 +95,11 @@ class LldpManager(daemon_base.DaemonBase):
94
95
"""
95
96
port_desc = None
96
97
98
+ # Skip inband interface prefixes. These are recycle ports exposed in PORT_TABLE for
99
+ # asic-to-asic communication in VOQ based chassis system. We do not configure LLDP on these.
100
+ if port_name .startswith (inband_prefix ()):
101
+ return
102
+
97
103
# Retrieve all entires for this port from the Port table
98
104
port_table = swsscommon .Table (self .config_db , swsscommon .CFG_PORT_TABLE_NAME )
99
105
(status , fvp ) = port_table .get (port_name )
Original file line number Diff line number Diff line change 90
90
if [ " $conn_chassis_db " == " 1" ]; then
91
91
if [ -f /usr/share/sonic/virtual_chassis/coreportindexmap.ini ]; then
92
92
cp /usr/share/sonic/virtual_chassis/coreportindexmap.ini /usr/share/sonic/hwsku/
93
+
94
+ pushd /usr/share/sonic/hwsku
95
+
96
+ # filter available front panel ports in coreportindexmap.ini
97
+ [ -f coreportindexmap.ini.orig ] || cp coreportindexmap.ini coreportindexmap.ini.orig
98
+ for p in $( ip link show | grep -oE " eth[0-9]+" | grep -v eth0) ; do
99
+ grep ^$p : coreportindexmap.ini.orig
100
+ done > coreportindexmap.ini
101
+
102
+ popd
93
103
fi
94
104
fi
95
105
Original file line number Diff line number Diff line change 13
13
"PortChannel" : "PortChannel" ,
14
14
"Vlan" : "Vlan" ,
15
15
"Loopback" : "Loopback" ,
16
- "Ethernet-Backplane" : "Ethernet-BP"
16
+ "Ethernet-Backplane" : "Ethernet-BP" ,
17
+ "Ethernet-Inband" : "Ethernet-IB"
17
18
}
18
19
19
20
VLAN_SUB_INTERFACE_SEPARATOR = '.'
@@ -48,6 +49,12 @@ def loopback_prefix():
48
49
"""
49
50
return SONIC_INTERFACE_PREFIXES ["Loopback" ]
50
51
52
+ def inband_prefix ():
53
+ """
54
+ Retrieves the SONIC recycle port inband interface name prefix.
55
+ """
56
+ return SONIC_INTERFACE_PREFIXES ["Ethernet-Inband" ]
57
+
51
58
def get_interface_table_name (interface_name ):
52
59
"""Get table name by interface_name prefix
53
60
"""
You can’t perform that action at this time.
0 commit comments