Skip to content

[action] [PR:15575] [staticroutebfd] fix static route uninstall issue if no nexthop#16133

Merged
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/15575
Aug 15, 2023
Merged

[action] [PR:15575] [staticroutebfd] fix static route uninstall issue if no nexthop#16133
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/15575

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

fixes #15574
fix static route uninstall issue when all nexthops are not reachable.
the feature was working but the bug was introduced when support dynamic bfd enable/disable.

Why I did it

If a static route is bfd protected, when all the bfd sessions are down and all the nexthop need to be removed from the static route, it fails because a kip condition is missing.

Work item tracking
  • Microsoft ADO (number only):

How I did it

To support bfd config dynamic change and avoid race condition when delete static route, there is a skip checking for staticRouteMgr(appl_db) to check if the deletion should be skipped. Besides checking if the route exists in config_db, also need to check if the route is bfd protected.

How to verify it

verified it both in UT and in real testbed.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…re not reachable (sonic-net#15575)

fix static route uninstall issue when all nexthops are not reachable.
the feature was working but the bug was introduced when support dynamic bfd enable/disable. Added UT testcase to guard this.
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #15575

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 6016b2b into sonic-net:202305 Aug 15, 2023
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