Issue 20728: Enhance configlet/test_add_rack.py for ipv6-only topos#21591
Issue 20728: Enhance configlet/test_add_rack.py for ipv6-only topos#21591anders-nexthop wants to merge 2 commits intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
901068c to
71be742
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
71be742 to
ede382f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ede382f to
aa1938f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw |
aa1938f to
fbf5115
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@yanmo96 Can you help review this PR? Thanks |
fbf5115 to
c23e5ca
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
yxieca
left a comment
There was a problem hiding this comment.
Reviewed: handles IPv4/IPv6-only neighbor checks; looks good. Minor nit in comment.
c23e5ca to
d9b2185
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
d9b2185 to
d78a2d3
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Good catch. Looking at it again, I noticed that we had the same logic repeated in three places. I refactored it into a helper, and incorported your suggestion there. I think this is a bit cleaner. @yxieca please take another look when you get a chance, thanks. |
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying: Re-approved; changes look good. Ready once CI is green.
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
Currently, the test checks for both ipv4 and ipv6 neighbors unconditionally, and will fail if either is missing. Change that behavior to instead check to see if neighbors exist before running the bgp checks. Add a failure case if no neighbors are found in either AF. This way the test is AF-agnostic. Signed-off-by: Anders Linn <anders@nexthop.ai>
Signed-off-by: Anders Linn <anders@nexthop.ai>
d78a2d3 to
144e027
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
Summary:
Currently, the test checks for both ipv4 and ipv6 neighbors unconditionally, and will fail if either is missing. Change that behavior to instead check to see if neighbors exist before running the bgp checks. Add a failure case if no neighbors are found in either AF. This way the test is AF-agnostic.
Closes #20728
Type of change
Back port request
Approach
What is the motivation for this PR?
Extend coverage for IPv6-only topos
How did you do it?
Add logic to check whether v4/v6 neighbor ips exist before checking whether they are up. If no neighbor ips are found at all, the test fails.
How did you verify/test it?
Ran the test on a vs topo with only v6 neighbors. It fails before these changes and passes after they are added.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation