Skip to content

[action] [PR:19340] [routes] Add sorting vms in announce_routes for t0 and t1#19375

Merged
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19340
Jul 3, 2025
Merged

[action] [PR:19340] [routes] Add sorting vms in announce_routes for t0 and t1#19375
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19340

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Fixes # (issue)

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

Approach

What is the motivation for this PR?

Below PRs added support to advertise different route sets from BGP neighbors for T0 / T1, it's based on vm index. But loading dict from yml cannot guarantee the sort always be the same. If we re-announce routes or withdraw routes after order changing, the result would be incorrect.
#19117
#19041

How did you do it?

Add sorted in vm index to make sure order of vm dict would always be the same

How did you verify/test it?

Run tests

Any platform specific information?

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

Documentation

…19340)

What is the motivation for this PR?
Below PRs added support to advertise different route sets from BGP neighbors for T0 / T1, it's based on vm index. But loading dict from yml cannot guarantee the sort always be the same. If we re-announce routes or withdraw routes after order changing, the result would be incorrect.
sonic-net#19117
sonic-net#19041

How did you do it?
Add sorted in vm index to make sure order of vm dict would always be the same

How did you verify/test it?
Run tests
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #19340

@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 0e93748 into sonic-net:202505 Jul 3, 2025
17 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