Skip to content

[action] [PR:22565] fix default route for t0-isolated topo - #22933

Merged
mssonicbld merged 1 commit into
sonic-net:202511from
mssonicbld:cherry/202511/22565
Mar 13, 2026
Merged

mssonicbld merged 1 commit into
sonic-net:202511from
mssonicbld:cherry/202511/22565

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

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

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Approach

What is the motivation for this PR?

Fix default route announcement from PT0 in t0-isolated topo

How did you do it?

  • advertise default for PT0 neighbor.
  • update test_default_route.py test case to use PT0 only as upstream neighbor.

How did you verify/test it?

local testbed.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

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>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: #22565

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
mssonicbld merged commit ee315d9 into sonic-net:202511 Mar 13, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants