zebra: Move allow-external-route-update to mgmt frontend side#21276
Merged
choppsv1 merged 1 commit intoFRRouting:masterfrom Mar 20, 2026
Merged
zebra: Move allow-external-route-update to mgmt frontend side#21276choppsv1 merged 1 commit intoFRRouting:masterfrom
allow-external-route-update to mgmt frontend side#21276choppsv1 merged 1 commit intoFRRouting:masterfrom
Conversation
The `allow-external-route-update` command was being compiled into the zebra side of the nb code. Thus when configuration was being applied that uses mgmtd as a frontend and zebra as the frontend one would get there first and lock the database, preventing the other side from working. Move this command to the correct spot. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Member
Author
Greptile SummaryThis PR relocates the
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Operator
participant mgmtd
participant zebra
Note over mgmtd,zebra: Before fix — command registered in BOTH paths
Operator->>mgmtd: allow-external-route-update
mgmtd->>mgmtd: zebra_cli_init() → locks YANG DB
Operator->>zebra: allow-external-route-update
zebra->>zebra: zebra_vty_init() → tries to lock YANG DB ❌ deadlock
Note over mgmtd,zebra: After fix — command registered only in mgmtd path
Operator->>mgmtd: allow-external-route-update
mgmtd->>mgmtd: zebra_cli_init() → locks YANG DB ✅
mgmtd->>zebra: NB callback: zebra_allow_external_route_update_create()
zebra->>zebra: zrouter.allow_delete = true
Last reviewed commit: "zebra: Move `allow-e..." |
choppsv1
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
allow-external-route-updatecommand was being compiled into the zebra side of the nb code. Thus when configuration was being applied that uses mgmtd as a frontend and zebra as the frontend one would get there first and lock the database, preventing the other side from working. Move this command to the correct spot.