Enable multi interface testing in gateway_ping_test.py
(New)
#998
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.
Description
This PR rearranges the code of
gateway_ping_test.py
to enable running the test on more than one interface. This is needed for SRU changes where we want the test to pass if any of the cable interfaces can ping the gateway.This PR also adds a new job that checks if the DUT can ping a gateway of any of its cable network interfaces, and replaces the job that try pinging with each of the interfaces with this one in the SRU test plan.
Resolved issues
Resolves: CHECKBOX-1243
Tests
Everything should be covered by the unit tests.
I've also tested it manually with multiple interface configurations