summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2023-12-06 13:51:32 +0100
committerGitHub <noreply@github.com>2023-12-06 13:51:32 +0100
commitcad5ee56be313c3d5b96082a5133435839af6cca (patch)
tree69862714f932816760cdc4576c4f7ccbce38fe86 /staticd
parentMerge pull request #14937 from pguibert6WIND/fix_nhid_suppress (diff)
parenttopotests: test wrong bfd source in bfd_topo3 (diff)
downloadfrr-cad5ee56be313c3d5b96082a5133435839af6cca.tar.xz
frr-cad5ee56be313c3d5b96082a5133435839af6cca.zip
Merge pull request #14922 from louis-6wind/fix-bfd-static-source
staticd: fix changing to source auto in bfd monitor
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_nb_config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/staticd/static_nb_config.c b/staticd/static_nb_config.c
index ed20b4104..2fee908d5 100644
--- a/staticd/static_nb_config.c
+++ b/staticd/static_nb_config.c
@@ -18,6 +18,7 @@
#include "static_vrf.h"
#include "static_routes.h"
#include "static_nb.h"
+#include "static_zebra.h"
static int static_path_list_create(struct nb_cb_create_args *args)
@@ -960,6 +961,17 @@ int route_next_hop_bfd_source_destroy(struct nb_cb_destroy_args *args)
sn = nb_running_get_entry(args->dnode, NULL, true);
static_next_hop_bfd_auto_source(sn);
+
+ /* NHT information are needed by BFD to automatically find the source
+ *
+ * Force zebra to resend the information to BFD by unregistering and
+ * registering again NHT. The (...)/frr-nexthops/nexthop northbound
+ * apply_finish function will trigger a call to static_install_nexthop()
+ * that does a call to static_zebra_nht_register(nh, true);
+ * static_zebra_nht_register(sn, false);
+ */
+ static_zebra_nht_register(sn, false);
+
return NB_OK;
}