Commit dcfd950622 for frr
commit dcfd950622f80be9e8b97a7a3c280e0e3623e84b
Author: Lincoln Thurlow <lincoln@isi.edu>
Date: Tue Dec 1 12:18:01 2026 -0800
pathd: release binding SID of an aborted commit
A binding SID label stays reserved in zebra's label manager when the
transaction that set it fails, so the label cannot be used again
until pathd restarts.
pathd reserves the label when it prepares the binding SID change, and
its abort handler does nothing.
This commit releases the label when the transaction aborts. The
northbound only aborts the changes it prepared successfully, so only
a label pathd reserved is released.
Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>
diff --git a/pathd/path_nb_config.c b/pathd/path_nb_config.c
index 48531ba433..4509a38789 100644
--- a/pathd/path_nb_config.c
+++ b/pathd/path_nb_config.c
@@ -339,6 +339,7 @@ int pathd_srte_policy_binding_sid_modify(struct nb_cb_modify_args *args)
return NB_ERR_RESOURCE;
break;
case NB_EV_ABORT:
+ path_zebra_release_label(binding_sid);
break;
case NB_EV_APPLY:
policy = nb_running_get_entry(args->dnode, NULL, true);