Skip to content

Commit

Permalink
[lldpmgrd] Initialize port_desc to None to prevent crashing (#3451)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored Sep 12, 2019
1 parent 0e62280 commit bbbd3db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockers/docker-lldp-sv2/lldpmgrd
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ class LldpManager(object):
For port `port_name`, look up the description and alias in the Config database,
then form the appropriate lldpcli configuration command and run it.
"""
port_desc = None

# 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

0 comments on commit bbbd3db

Please sign in to comment.