Skip to content

Commit

Permalink
[inbandif] Avoid lldp on inband interface
Browse files Browse the repository at this point in the history
Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>

Changes to avoid LLDP config on Inband interface. Since port type inband
interfaces are recycle ports (or may normal ports) used for asic-to-asic
communication, LLDP is not configured on these interfaces.
  • Loading branch information
vedganes committed Feb 17, 2021
1 parent 68eecee commit d9e446f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dockers/docker-lldp/lldpmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class LldpManager(daemon_base.DaemonBase):
"""
port_desc = None

# Skip port name prefixed with "Inband". These are recycle ports exposed in PORT_TABLE for
# asic-to-asic communication in VOQ based chassis system. We do not configure LLDP on these.
if 'Inband' in port_name:
return

# Retrieve all entires for this port from the Port table
port_table = swsscommon.Table(self.config_db, swsscommon.CFG_PORT_TABLE_NAME)
(status, fvp) = port_table.get(port_name)
Expand Down
4 changes: 2 additions & 2 deletions dockers/docker-lldp/supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ dependent_startup_wait_for=rsyslogd:running
# - `-ddd` means to stay in foreground, log warnings and info to console
# - `-dddd` means to stay in foreground, log all to console
{% if DEVICE_METADATA['localhost']['sub_role'] is defined and DEVICE_METADATA['localhost']['sub_role']|length %}
command=/usr/sbin/lldpd -d -I Ethernet*,Inband* -C Ethernet*
command=/usr/sbin/lldpd -d -I Ethernet* -C Ethernet*
{% else %}
command=/usr/sbin/lldpd -d -I Ethernet*,Inband*,eth0 -C eth0
command=/usr/sbin/lldpd -d -I Ethernet*,eth0 -C eth0
{% endif %}
priority=3
autostart=false
Expand Down

0 comments on commit d9e446f

Please sign in to comment.