[lldp]Fix the issue of only one field lldp_rem_time_mark in APPL_DB #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It still has the following syslog:
2024 Dec 2 18:22:18.291732 bjw2-can-7260-3 WARNING snmp#snmp-subagent [sonic_ax_impl] WARNING: Exception when updating lldpRemTable: 'lldp_rem_index'
It always happened for
eth0
, theLLDP_ENTRY_TABLE
inAPPL_DB
foreth0
is like this:{'lldp_rem_time_mark': '3886'}
reproduce steps:
Root cause:
restart syncd and orchagent, other interfaces are down, but eth0 is still up. So, it is always in changed list and still it thinks the only changed field is lldp_rem_time_mark. But APPL_DB was flushed, the
LLDP_ENTRY_TABLE:eth0
is empty. During every lldp-syncd daemon run function, it only updates thelldp_rem_time_mark
field for eth0. And it doesn't have other chance to write other fields into the table, except shutdown/ no shutdown eth0 or restart lldp.repopulate APPL_DB lldp table for changed interface if detects any new or deleted interfaces.
Even syncd or orchagent restarts, other interfaces will down and then up, eth0 still has change to rewrite all fields
30233240