[lldpmgrd] Initialize port_desc to None to prevent crashing (#3451)
This commit is contained in:
parent
87cb1e307e
commit
94f2113cec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user