[lldpmgrd] only log error in is_port_up() after port init done (#4606)
lldpmgrd listens for changes to the PORT table in the CONFIG_DB and APP_DB in order to handle alias/description config change. It checks if port is up or down by looking into the oper-status for in APP_DB PORT TABLE. If it cannot find it in the App DB, it will log error. During initializing, it is possible that there is a port change in CONFIG_DB and but the not ready in APP_DB. The change here is to only log error in is_port_up() after port init done.
This commit is contained in:
parent
f243934b7e
commit
e0f8aa71d6
@ -119,7 +119,11 @@ class LldpManager(object):
|
||||
else:
|
||||
return False
|
||||
else:
|
||||
log_error("Port '{}' not found in {} table in App DB".format(port_name, swsscommon.APP_PORT_TABLE_NAME))
|
||||
# Retrieve PortInitDone entry from the Port table
|
||||
(init_status, init_fvp) = port_table.get("PortInitDone")
|
||||
#The initialization procedure is done, but don't have this port entry
|
||||
if init_status:
|
||||
log_error("Port '{}' not found in {} table in App DB".format(port_name, swsscommon.APP_PORT_TABLE_NAME))
|
||||
return False
|
||||
|
||||
def generate_pending_lldp_config_cmd_for_port(self, port_name):
|
||||
|
Loading…
Reference in New Issue
Block a user