summaryrefslogtreecommitdiffstats
path: root/isisd/isis_vty_fabricd.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-06 13:44:05 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-05-07 11:03:57 +0200
commit13bf38300e45ac074c3c48fb0d278e9e44eb135e (patch)
treeaaf9d4907b6968fa5b26ec0ecd2232a048c0f5a2 /isisd/isis_vty_fabricd.c
parentMerge pull request #8581 from qlyoung/bgp-fix-last-reset-buffer-size (diff)
downloadfrr-13bf38300e45ac074c3c48fb0d278e9e44eb135e.tar.xz
frr-13bf38300e45ac074c3c48fb0d278e9e44eb135e.zip
isisd: rework BFD integration
Rewrite the BFD integration code to use the new library. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_vty_fabricd.c')
-rw-r--r--isisd/isis_vty_fabricd.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/isisd/isis_vty_fabricd.c b/isisd/isis_vty_fabricd.c
index 7020b6efe..a19fcc240 100644
--- a/isisd/isis_vty_fabricd.c
+++ b/isisd/isis_vty_fabricd.c
@@ -319,13 +319,11 @@ DEFUN (isis_bfd,
if (!circuit)
return CMD_ERR_NO_MATCH;
- if (circuit->bfd_info
- && CHECK_FLAG(circuit->bfd_info->flags, BFD_FLAG_PARAM_CFG)) {
+ if (circuit->bfd_config.enabled)
return CMD_SUCCESS;
- }
- isis_bfd_circuit_param_set(circuit, BFD_DEF_MIN_RX, BFD_DEF_MIN_TX,
- BFD_DEF_DETECT_MULT, NULL, true);
+ circuit->bfd_config.enabled = true;
+ isis_bfd_circuit_cmd(circuit);
return CMD_SUCCESS;
}
@@ -343,11 +341,12 @@ DEFUN (no_isis_bfd,
if (!circuit)
return CMD_ERR_NO_MATCH;
- if (!circuit->bfd_info)
+ if (!circuit->bfd_config.enabled)
return CMD_SUCCESS;
- isis_bfd_circuit_cmd(circuit, ZEBRA_BFD_DEST_DEREGISTER);
- bfd_info_free(&circuit->bfd_info);
+ circuit->bfd_config.enabled = false;
+ isis_bfd_circuit_cmd(circuit);
+
return CMD_SUCCESS;
}