summaryrefslogtreecommitdiff
path: root/bfdd/bfdd.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-05-23 16:09:24 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-06-22 10:10:56 -0300
commitadc26455bff183ce65d475b058045165826d823f (patch)
tree82113cf3836bad765a1b331a0fbc315b929e468f /bfdd/bfdd.c
parent3e4e7405ff2d9373c4e43550fa37c43fd06504d5 (diff)
bfdd: migrate session commands to northbound
Lets start using the new BFD yang model and translate the BFD session configuration commands to use the northbound. One important change: all sessions will default to use `VRF_DEFAULT_NAME` (usually "default") when no VRF is configured. All places which search for BFD sessions must now take this into account. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfdd.c')
-rw-r--r--bfdd/bfdd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c
index 6c277c98f5..5a6089f384 100644
--- a/bfdd/bfdd.c
+++ b/bfdd/bfdd.c
@@ -93,10 +93,17 @@ static struct quagga_signal_t bfd_signals[] = {
},
};
+static const struct frr_yang_module_info *bfdd_yang_modules[] = {
+ &frr_interface_info,
+ &frr_bfdd_info,
+};
+
FRR_DAEMON_INFO(bfdd, BFD, .vty_port = 2617,
.proghelp = "Implementation of the BFD protocol.",
.signals = bfd_signals, .n_signals = array_size(bfd_signals),
- .privs = &bglobal.bfdd_privs)
+ .privs = &bglobal.bfdd_privs,
+ .yang_modules = bfdd_yang_modules,
+ .n_yang_modules = array_size(bfdd_yang_modules))
#define OPTION_CTLSOCK 1001
static struct option longopts[] = {