[copp] Make LLDP disable/enable more robust #2605
Merged
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.
Signed-off-by: Danny Allen [email protected]
Description of PR
Summary: Make LLDP disable/enable more robust
Type of change
Approach
What is the motivation for this PR?
We notice that if the COPP test setup fails, then it never makes it around to re-starting LLDP. This can be problematic for successive
How did you do it?
I separated the LLDP disable/enable into its own separate fixture so that it is guaranteed to run through all the proper steps even if the rest of the setup or teardown fails for some reason.
How did you verify/test it?
Removed the COPP config file so that setup and teardown would fail and then ran the test. Confirmed that LLDP is back up and the autorestart feature is enabled for LLDP after the test finishes.
Any platform specific information?
N/A
Supported testbed topology if it's a new test case?
N/A
Documentation