summaryrefslogtreecommitdiffstats
path: root/isisd/isis_bfd.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-09-28 15:20:28 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-10-05 14:05:30 +0200
commit215eccb0b8e7e19e6796cb945fba7c5f27bbee47 (patch)
tree27f07483cb52c68cb396d4524900abc798515563 /isisd/isis_bfd.c
parentisisd: Replace isis_event_adjacency_state_change with a hook (diff)
downloadfrr-215eccb0b8e7e19e6796cb945fba7c5f27bbee47.tar.xz
frr-215eccb0b8e7e19e6796cb945fba7c5f27bbee47.zip
isisd: Add BFD configuration commands
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_bfd.c')
-rw-r--r--isisd/isis_bfd.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/isisd/isis_bfd.c b/isisd/isis_bfd.c
index 3abf80a2d..8a7947b2a 100644
--- a/isisd/isis_bfd.c
+++ b/isisd/isis_bfd.c
@@ -26,6 +26,11 @@
#include "isisd/isis_bfd.h"
#include "isisd/isis_zebra.h"
+#include "isisd/isis_common.h"
+#include "isisd/isis_constants.h"
+#include "isisd/isis_adjacency.h"
+#include "isisd/isis_circuit.h"
+#include "isisd/fabricd.h"
static int isis_bfd_interface_dest_update(int command, struct zclient *zclient,
zebra_size_t length, vrf_id_t vrf_id)
@@ -49,6 +54,24 @@ static void isis_bfd_zebra_connected(struct zclient *zclient)
bfd_client_sendmsg(zclient, ZEBRA_BFD_CLIENT_REGISTER);
}
+void isis_bfd_circuit_cmd(struct isis_circuit *circuit, int command)
+{
+ return;
+}
+
+void isis_bfd_circuit_param_set(struct isis_circuit *circuit,
+ uint32_t min_rx, uint32_t min_tx,
+ uint32_t detect_mult, int defaults)
+{
+ int command = 0;
+
+ bfd_set_param(&circuit->bfd_info, min_rx,
+ min_tx, detect_mult, defaults, &command);
+
+ if (command)
+ isis_bfd_circuit_cmd(circuit, command);
+}
+
void isis_bfd_init(void)
{
bfd_gbl_init();