fix default route for t0-isolated topo#22565
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
local test result on 202412: |
|
Will this break other tests? |
|
this is a fairly large change, and I would recommend run a full test run before commit this in. |
Hi @r12f , there is no new failure with this change: https://elastictest.org/scheduler/testplan/699da1eb32ebdf0ced87b34e |
StormLiangMS
left a comment
There was a problem hiding this comment.
Please confirm the route generation callees (e.g. \generate_routes) accept \ or_default_route\ as a keyword argument — otherwise this will raise a \TypeError\ at runtime.
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying: Note that this adds tor_default_route to the generate_routes call. I don’t see the corresponding parameter addition in the helper; please confirm the callee accepts this kwarg or update it, otherwise we’ll hit a TypeError at runtime. (Echoing StormLiangMS’ concern.)
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying: Confirmed generate_routes already accepts tor_default_route in announce_routes.py; change looks good. Approving.
|
@sdszhang there is a merge conflict, can you check? |
yxieca
left a comment
There was a problem hiding this comment.
LGTM. AI agent on behalf of Ying.
yxieca
left a comment
There was a problem hiding this comment.
Looks good. The PT-only neighbor filter for t0-isolated makes the default-route check match topology preference, and tor_default_route gating aligns announce_routes behavior. AI agent on behalf of Ying.
yxieca
left a comment
There was a problem hiding this comment.
LGTM. Change is scoped and aligns the test expectation with PT0-preferred default route behavior in t0-isolated. (AI agent on behalf of Ying)
yxieca
left a comment
There was a problem hiding this comment.
Looks good to me. The PT-only upstream filter for t0-isolated aligns with the preferred default route behavior and the announce_routes tweak is consistent with existing tor_default_route handling.\n\nAI agent on behalf of Ying.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com> # Conflicts: # tests/route/test_default_route.py
818e43d to
dd6a486
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Just wondering if this test is passing for t0-isolated-d32u32s2 on 202412 |
The test will pass on 202412 with the cherry-pick in Azure/sonic-mgmt.msft#1037, even though no routes are coming from PT0 in 202412 after add-topo. |
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
|
Cherry-pick PR to 202511: #22933 |
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Signed-off-by: Abhishek <abhishek@nexthop.ai>
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Signed-off-by: Venkata Gouri Rajesh Etla <vrajeshe@cisco.com>
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
route/test_default_route.py::test_default_route_with_bgp_flap FAILED [ 75%]
......
logging.info("peer intf ip from tb {}".format(upstream_neigh_ip))
> pytest_assert(len(nexthops) == len(upstream_neigh_ip),
"Default route nexthops doesn't match the testbed topology")
E Failed: Default route nexthops doesn't match the testbed topology
Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
Description of PR
Summary:
In t0-isolated topo, the default route may come from PT0 or T1, and PT0 is preferred due to shorter AS path. Update the test case to suit it.
Fixes default route for t0-isolated topo.
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix default route announcement from PT0 in t0-isolated topo
How did you do it?
How did you verify/test it?
local testbed.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation