summaryrefslogtreecommitdiffstats
path: root/pimd/pim_bfd.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-04-13 16:07:01 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-04-23 14:29:00 +0200
commit745b8d4a68c112cbcf371d73f81b7ce7c3921b4d (patch)
tree523bfa2a5e44385fc751f88f22f3216910271252 /pimd/pim_bfd.c
parentyang: add PIM BFD profile support (diff)
downloadfrr-745b8d4a68c112cbcf371d73f81b7ce7c3921b4d.tar.xz
frr-745b8d4a68c112cbcf371d73f81b7ce7c3921b4d.zip
pimd: support BFD profiles configuration
Allow users to pre configure BFD sessions with a profile. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_bfd.c')
-rw-r--r--pimd/pim_bfd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pimd/pim_bfd.c b/pimd/pim_bfd.c
index 2990fcb02..bc518391a 100644
--- a/pimd/pim_bfd.c
+++ b/pimd/pim_bfd.c
@@ -56,6 +56,10 @@ void pim_bfd_write_config(struct vty *vty, struct interface *ifp)
else
#endif /* ! HAVE_BFDD */
vty_out(vty, " ip pim bfd\n");
+
+ if (pim_ifp->bfd_config.profile)
+ vty_out(vty, " ip pim bfd profile %s\n",
+ pim_ifp->bfd_config.profile);
}
static void pim_neighbor_bfd_cb(struct bfd_session_params *bsp,
@@ -92,6 +96,7 @@ void pim_bfd_info_nbr_create(struct pim_interface *pim_ifp,
pim_ifp->bfd_config.min_rx, pim_ifp->bfd_config.min_tx);
bfd_sess_set_ipv4_addrs(neigh->bfd_session, NULL, &neigh->source_addr);
bfd_sess_set_interface(neigh->bfd_session, neigh->interface->name);
+ bfd_sess_set_profile(neigh->bfd_session, pim_ifp->bfd_config.profile);
bfd_sess_install(neigh->bfd_session);
}