[lldpmgrd] To change error log condition in is_port_up() #4606
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.
- Why I did it
For lldpmgrd, listen for changes to the PORT table in the CONFIG_DB and APP_DB
To handle alias/description config change.
To check if port is up or down by looking into the oper-status for the port in PORT TABLE in the App DB.
Don't find it in the App DB, will log error.
During initializing, it is possible that port change in CONFIG_DB and not ready in APP_DB.
When we executed test_mgmtvrf.py::TestReboot::test_reboot case, it cannot pass due to LogAnalyzerError.
- How I did it
To change error log condition, only in "port initialization procedure is done , but the port entry not found".
- How to verify it
To run test_mgmtvrf.py::TestReboot::test_reboot case, don't see the ERR log after DUT rebooting
Signed-off-by: kelly_chen@edge-core.com