2 * BFD daemon CLI implementation.
4 * Copyright (C) 2019 Network Device Education Foundation, Inc. ("NetDEF")
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 #include "lib/command.h"
27 #include "lib/northbound_cli.h"
29 #include "bfdd/bfdd_cli_clippy.c"
37 #define PEER_STR "Configure peer\n"
38 #define INTERFACE_NAME_STR "Configure interface name to use\n"
39 #define PEER_IPV4_STR "IPv4 peer address\n"
40 #define PEER_IPV6_STR "IPv6 peer address\n"
41 #define MHOP_STR "Configure multihop\n"
42 #define LOCAL_STR "Configure local address\n"
43 #define LOCAL_IPV4_STR "IPv4 local address\n"
44 #define LOCAL_IPV6_STR "IPv6 local address\n"
45 #define LOCAL_INTF_STR "Configure local interface name to use\n"
46 #define VRF_STR "Configure VRF\n"
47 #define VRF_NAME_STR "Configure VRF name\n"
53 bfd_cli_is_single_hop(struct vty
*vty
)
55 return strstr(VTY_CURR_XPATH
, "/single-hop") != NULL
;
59 bfd_cli_is_profile(struct vty
*vty
)
61 return strstr(VTY_CURR_XPATH
, "/bfd/profile") != NULL
;
68 bfd_enter
, bfd_enter_cmd
,
70 "Configure BFD peers\n")
74 nb_cli_enqueue_change(vty
, "/frr-bfdd:bfdd/bfd", NB_OP_CREATE
, NULL
);
75 ret
= nb_cli_apply_changes(vty
, NULL
);
76 if (ret
== CMD_SUCCESS
)
77 VTY_PUSH_XPATH(BFD_NODE
, "/frr-bfdd:bfdd/bfd");
83 bfd_config_reset
, bfd_config_reset_cmd
,
86 "Configure BFD peers\n")
88 nb_cli_enqueue_change(vty
, "/frr-bfdd:bfdd/bfd", NB_OP_DESTROY
, NULL
);
89 return nb_cli_apply_changes(vty
, NULL
);
92 void bfd_cli_show_header(struct vty
*vty
,
93 const struct lyd_node
*dnode
94 __attribute__((__unused__
)),
95 bool show_defaults
__attribute__((__unused__
)))
97 vty_out(vty
, "!\nbfd\n");
100 void bfd_cli_show_header_end(struct vty
*vty
, const struct lyd_node
*dnode
101 __attribute__((__unused__
)))
103 vty_out(vty
, "exit\n");
108 bfd_peer_enter
, bfd_peer_enter_cmd
,
109 "peer <A.B.C.D|X:X::X:X> [{multihop$multihop|local-address <A.B.C.D|X:X::X:X>|interface IFNAME$ifname|vrf NAME}]",
123 char source_str
[INET6_ADDRSTRLEN
+ 32];
124 char xpath
[XPATH_MAXLEN
], xpath_srcaddr
[XPATH_MAXLEN
+ 32];
127 if (!local_address_str
) {
129 "%% local-address is required when using multihop\n");
130 return CMD_WARNING_CONFIG_FAILED
;
134 "%% interface is prohibited when using multihop\n");
135 return CMD_WARNING_CONFIG_FAILED
;
137 snprintf(source_str
, sizeof(source_str
), "[source-addr='%s']",
142 slen
= snprintf(xpath
, sizeof(xpath
),
143 "/frr-bfdd:bfdd/bfd/sessions/%s%s[dest-addr='%s']",
144 multihop
? "multi-hop" : "single-hop", source_str
,
147 slen
+= snprintf(xpath
+ slen
, sizeof(xpath
) - slen
,
148 "[interface='%s']", ifname
);
150 slen
+= snprintf(xpath
+ slen
, sizeof(xpath
) - slen
,
153 snprintf(xpath
+ slen
, sizeof(xpath
) - slen
, "[vrf='%s']", vrf
);
155 snprintf(xpath
+ slen
, sizeof(xpath
) - slen
, "[vrf='%s']",
158 nb_cli_enqueue_change(vty
, xpath
, NB_OP_CREATE
, NULL
);
159 if (multihop
== NULL
&& local_address_str
!= NULL
) {
160 snprintf(xpath_srcaddr
, sizeof(xpath_srcaddr
),
161 "%s/source-addr", xpath
);
162 nb_cli_enqueue_change(vty
, xpath_srcaddr
, NB_OP_MODIFY
,
166 /* Apply settings immediately. */
167 ret
= nb_cli_apply_changes(vty
, NULL
);
168 if (ret
== CMD_SUCCESS
)
169 VTY_PUSH_XPATH(BFD_PEER_NODE
, xpath
);
175 bfd_no_peer
, bfd_no_peer_cmd
,
176 "no peer <A.B.C.D|X:X::X:X> [{multihop$multihop|local-address <A.B.C.D|X:X::X:X>|interface IFNAME$ifname|vrf NAME}]",
191 char xpath
[XPATH_MAXLEN
];
192 char source_str
[INET6_ADDRSTRLEN
+ 32];
195 if (!local_address_str
) {
197 "%% local-address is required when using multihop\n");
198 return CMD_WARNING_CONFIG_FAILED
;
202 "%% interface is prohibited when using multihop\n");
203 return CMD_WARNING_CONFIG_FAILED
;
205 snprintf(source_str
, sizeof(source_str
), "[source-addr='%s']",
210 slen
= snprintf(xpath
, sizeof(xpath
),
211 "/frr-bfdd:bfdd/bfd/sessions/%s%s[dest-addr='%s']",
212 multihop
? "multi-hop" : "single-hop", source_str
,
215 slen
+= snprintf(xpath
+ slen
, sizeof(xpath
) - slen
,
216 "[interface='%s']", ifname
);
218 slen
+= snprintf(xpath
+ slen
, sizeof(xpath
) - slen
,
221 snprintf(xpath
+ slen
, sizeof(xpath
) - slen
, "[vrf='%s']", vrf
);
223 snprintf(xpath
+ slen
, sizeof(xpath
) - slen
, "[vrf='%s']",
226 nb_cli_enqueue_change(vty
, xpath
, NB_OP_DESTROY
, NULL
);
228 /* Apply settings immediatly. */
229 return nb_cli_apply_changes(vty
, NULL
);
232 static void _bfd_cli_show_peer(struct vty
*vty
, const struct lyd_node
*dnode
,
233 bool show_defaults
__attribute__((__unused__
)),
236 const char *vrf
= yang_dnode_get_string(dnode
, "./vrf");
238 vty_out(vty
, " peer %s",
239 yang_dnode_get_string(dnode
, "./dest-addr"));
242 vty_out(vty
, " multihop");
244 if (yang_dnode_exists(dnode
, "./source-addr"))
245 vty_out(vty
, " local-address %s",
246 yang_dnode_get_string(dnode
, "./source-addr"));
248 if (strcmp(vrf
, VRF_DEFAULT_NAME
))
249 vty_out(vty
, " vrf %s", vrf
);
253 yang_dnode_get_string(dnode
, "./interface");
254 if (strcmp(ifname
, "*"))
255 vty_out(vty
, " interface %s", ifname
);
261 void bfd_cli_show_single_hop_peer(struct vty
*vty
, const struct lyd_node
*dnode
,
264 _bfd_cli_show_peer(vty
, dnode
, show_defaults
, false);
267 void bfd_cli_show_multi_hop_peer(struct vty
*vty
, const struct lyd_node
*dnode
,
270 _bfd_cli_show_peer(vty
, dnode
, show_defaults
, true);
273 void bfd_cli_show_peer_end(struct vty
*vty
, const struct lyd_node
*dnode
274 __attribute__((__unused__
)))
276 vty_out(vty
, " exit\n");
277 vty_out(vty
, " !\n");
281 bfd_peer_shutdown
, bfd_peer_shutdown_cmd
,
284 "Disable BFD peer\n")
286 nb_cli_enqueue_change(vty
, "./administrative-down", NB_OP_MODIFY
,
287 no
? "false" : "true");
288 return nb_cli_apply_changes(vty
, NULL
);
291 void bfd_cli_show_shutdown(struct vty
*vty
, const struct lyd_node
*dnode
,
294 vty_out(vty
, " %sshutdown\n",
295 yang_dnode_get_bool(dnode
, NULL
) ? "" : "no ");
299 bfd_peer_passive
, bfd_peer_passive_cmd
,
302 "Don't attempt to start sessions\n")
304 nb_cli_enqueue_change(vty
, "./passive-mode", NB_OP_MODIFY
,
305 no
? "false" : "true");
306 return nb_cli_apply_changes(vty
, NULL
);
309 void bfd_cli_show_passive(struct vty
*vty
, const struct lyd_node
*dnode
,
312 vty_out(vty
, " %spassive-mode\n",
313 yang_dnode_get_bool(dnode
, NULL
) ? "" : "no ");
317 bfd_peer_minimum_ttl
, bfd_peer_minimum_ttl_cmd
,
318 "[no] minimum-ttl (1-254)$ttl",
320 "Expect packets with at least this TTL\n"
321 "Minimum TTL expected\n")
323 if (bfd_cli_is_single_hop(vty
)) {
324 vty_out(vty
, "%% Minimum TTL is only available for multi hop sessions.\n");
325 return CMD_WARNING_CONFIG_FAILED
;
329 nb_cli_enqueue_change(vty
, "./minimum-ttl", NB_OP_DESTROY
,
332 nb_cli_enqueue_change(vty
, "./minimum-ttl", NB_OP_MODIFY
,
334 return nb_cli_apply_changes(vty
, NULL
);
338 no_bfd_peer_minimum_ttl
, no_bfd_peer_minimum_ttl_cmd
,
341 "Expect packets with at least this TTL\n")
343 nb_cli_enqueue_change(vty
, "./minimum-ttl", NB_OP_DESTROY
, NULL
);
344 return nb_cli_apply_changes(vty
, NULL
);
347 void bfd_cli_show_minimum_ttl(struct vty
*vty
, const struct lyd_node
*dnode
,
350 vty_out(vty
, " minimum-ttl %s\n", yang_dnode_get_string(dnode
, NULL
));
354 bfd_peer_mult
, bfd_peer_mult_cmd
,
355 "detect-multiplier (2-255)$multiplier",
356 "Configure peer detection multiplier\n"
357 "Configure peer detection multiplier value\n")
359 nb_cli_enqueue_change(vty
, "./detection-multiplier", NB_OP_MODIFY
,
361 return nb_cli_apply_changes(vty
, NULL
);
364 void bfd_cli_show_mult(struct vty
*vty
, const struct lyd_node
*dnode
,
367 vty_out(vty
, " detect-multiplier %s\n",
368 yang_dnode_get_string(dnode
, NULL
));
372 bfd_peer_rx
, bfd_peer_rx_cmd
,
373 "receive-interval (10-60000)$interval",
374 "Configure peer receive interval\n"
375 "Configure peer receive interval value in milliseconds\n")
379 snprintf(value
, sizeof(value
), "%ld", interval
* 1000);
380 nb_cli_enqueue_change(vty
, "./required-receive-interval", NB_OP_MODIFY
,
383 return nb_cli_apply_changes(vty
, NULL
);
386 void bfd_cli_show_rx(struct vty
*vty
, const struct lyd_node
*dnode
,
389 uint32_t value
= yang_dnode_get_uint32(dnode
, NULL
);
391 vty_out(vty
, " receive-interval %u\n", value
/ 1000);
395 bfd_peer_tx
, bfd_peer_tx_cmd
,
396 "transmit-interval (10-60000)$interval",
397 "Configure peer transmit interval\n"
398 "Configure peer transmit interval value in milliseconds\n")
402 snprintf(value
, sizeof(value
), "%ld", interval
* 1000);
403 nb_cli_enqueue_change(vty
, "./desired-transmission-interval",
404 NB_OP_MODIFY
, value
);
406 return nb_cli_apply_changes(vty
, NULL
);
409 void bfd_cli_show_tx(struct vty
*vty
, const struct lyd_node
*dnode
,
412 uint32_t value
= yang_dnode_get_uint32(dnode
, NULL
);
414 vty_out(vty
, " transmit-interval %u\n", value
/ 1000);
418 bfd_peer_echo
, bfd_peer_echo_cmd
,
421 "Configure echo mode\n")
423 if (!bfd_cli_is_profile(vty
) && !bfd_cli_is_single_hop(vty
)) {
425 "%% Echo mode is only available for single hop sessions.\n");
426 return CMD_WARNING_CONFIG_FAILED
;
429 if (!no
&& !bglobal
.bg_use_dplane
) {
432 "%% Echo mode works correctly for IPv4, but only works when the peer is also FRR for IPv6.\n");
435 "%% Current implementation of echo mode works only when the peer is also FRR.\n");
436 #endif /* BFD_LINUX */
439 nb_cli_enqueue_change(vty
, "./echo-mode", NB_OP_MODIFY
,
440 no
? "false" : "true");
441 return nb_cli_apply_changes(vty
, NULL
);
444 void bfd_cli_show_echo(struct vty
*vty
, const struct lyd_node
*dnode
,
447 vty_out(vty
, " %secho-mode\n",
448 yang_dnode_get_bool(dnode
, NULL
) ? "" : "no ");
452 bfd_peer_echo_interval
, bfd_peer_echo_interval_cmd
,
453 "echo-interval (10-60000)$interval",
454 "Configure peer echo intervals\n"
455 "Configure peer echo rx/tx intervals value in milliseconds\n")
459 if (!bfd_cli_is_profile(vty
) && !bfd_cli_is_single_hop(vty
)) {
460 vty_out(vty
, "%% Echo mode is only available for single hop sessions.\n");
461 return CMD_WARNING_CONFIG_FAILED
;
464 snprintf(value
, sizeof(value
), "%ld", interval
* 1000);
465 nb_cli_enqueue_change(vty
, "./desired-echo-transmission-interval",
466 NB_OP_MODIFY
, value
);
467 nb_cli_enqueue_change(vty
, "./required-echo-receive-interval",
468 NB_OP_MODIFY
, value
);
470 return nb_cli_apply_changes(vty
, NULL
);
474 bfd_peer_echo_transmit_interval
, bfd_peer_echo_transmit_interval_cmd
,
475 "echo transmit-interval (10-60000)$interval",
476 "Configure peer echo intervals\n"
477 "Configure desired transmit interval\n"
478 "Configure interval value in milliseconds\n")
482 if (!bfd_cli_is_profile(vty
) && !bfd_cli_is_single_hop(vty
)) {
483 vty_out(vty
, "%% Echo mode is only available for single hop sessions.\n");
484 return CMD_WARNING_CONFIG_FAILED
;
487 snprintf(value
, sizeof(value
), "%ld", interval
* 1000);
488 nb_cli_enqueue_change(vty
, "./desired-echo-transmission-interval",
489 NB_OP_MODIFY
, value
);
491 return nb_cli_apply_changes(vty
, NULL
);
494 void bfd_cli_show_desired_echo_transmission_interval(
495 struct vty
*vty
, const struct lyd_node
*dnode
, bool show_defaults
)
497 uint32_t value
= yang_dnode_get_uint32(dnode
, NULL
);
499 vty_out(vty
, " echo transmit-interval %u\n", value
/ 1000);
503 bfd_peer_echo_receive_interval
, bfd_peer_echo_receive_interval_cmd
,
504 "echo receive-interval <disabled$disabled|(10-60000)$interval>",
505 "Configure peer echo intervals\n"
506 "Configure required receive interval\n"
507 "Disable echo packets receive\n"
508 "Configure interval value in milliseconds\n")
512 if (!bfd_cli_is_profile(vty
) && !bfd_cli_is_single_hop(vty
)) {
513 vty_out(vty
, "%% Echo mode is only available for single hop sessions.\n");
514 return CMD_WARNING_CONFIG_FAILED
;
518 snprintf(value
, sizeof(value
), "0");
520 snprintf(value
, sizeof(value
), "%ld", interval
* 1000);
522 nb_cli_enqueue_change(vty
, "./required-echo-receive-interval",
523 NB_OP_MODIFY
, value
);
525 return nb_cli_apply_changes(vty
, NULL
);
528 void bfd_cli_show_required_echo_receive_interval(struct vty
*vty
,
529 const struct lyd_node
*dnode
,
532 uint32_t value
= yang_dnode_get_uint32(dnode
, NULL
);
535 vty_out(vty
, " echo receive-interval %u\n", value
/ 1000);
537 vty_out(vty
, " echo receive-interval disabled\n");
543 DEFPY_YANG_NOSH(bfd_profile
, bfd_profile_cmd
,
544 "profile BFDPROF$name",
546 BFD_PROFILE_NAME_STR
)
548 char xpath
[XPATH_MAXLEN
];
551 snprintf(xpath
, sizeof(xpath
), "/frr-bfdd:bfdd/bfd/profile[name='%s']",
554 nb_cli_enqueue_change(vty
, xpath
, NB_OP_CREATE
, NULL
);
556 /* Apply settings immediately. */
557 rv
= nb_cli_apply_changes(vty
, NULL
);
558 if (rv
== CMD_SUCCESS
)
559 VTY_PUSH_XPATH(BFD_PROFILE_NODE
, xpath
);
564 DEFPY_YANG(no_bfd_profile
, no_bfd_profile_cmd
,
565 "no profile BFDPROF$name",
568 BFD_PROFILE_NAME_STR
)
570 char xpath
[XPATH_MAXLEN
];
572 snprintf(xpath
, sizeof(xpath
), "/frr-bfdd:bfdd/bfd/profile[name='%s']",
575 nb_cli_enqueue_change(vty
, xpath
, NB_OP_DESTROY
, NULL
);
577 /* Apply settings immediately. */
578 return nb_cli_apply_changes(vty
, NULL
);
581 void bfd_cli_show_profile(struct vty
*vty
, const struct lyd_node
*dnode
,
584 vty_out(vty
, " profile %s\n", yang_dnode_get_string(dnode
, "./name"));
587 ALIAS_YANG(bfd_peer_mult
, bfd_profile_mult_cmd
,
588 "detect-multiplier (2-255)$multiplier",
589 "Configure peer detection multiplier\n"
590 "Configure peer detection multiplier value\n")
592 ALIAS_YANG(bfd_peer_tx
, bfd_profile_tx_cmd
,
593 "transmit-interval (10-60000)$interval",
594 "Configure peer transmit interval\n"
595 "Configure peer transmit interval value in milliseconds\n")
597 ALIAS_YANG(bfd_peer_rx
, bfd_profile_rx_cmd
,
598 "receive-interval (10-60000)$interval",
599 "Configure peer receive interval\n"
600 "Configure peer receive interval value in milliseconds\n")
602 ALIAS_YANG(bfd_peer_shutdown
, bfd_profile_shutdown_cmd
,
605 "Disable BFD peer\n")
607 ALIAS_YANG(bfd_peer_passive
, bfd_profile_passive_cmd
,
610 "Don't attempt to start sessions\n")
612 ALIAS_YANG(bfd_peer_minimum_ttl
, bfd_profile_minimum_ttl_cmd
,
613 "[no] minimum-ttl (1-254)$ttl",
615 "Expect packets with at least this TTL\n"
616 "Minimum TTL expected\n")
618 ALIAS_YANG(no_bfd_peer_minimum_ttl
, no_bfd_profile_minimum_ttl_cmd
,
621 "Expect packets with at least this TTL\n")
623 ALIAS_YANG(bfd_peer_echo
, bfd_profile_echo_cmd
,
626 "Configure echo mode\n")
628 ALIAS_YANG(bfd_peer_echo_interval
, bfd_profile_echo_interval_cmd
,
629 "echo-interval (10-60000)$interval",
630 "Configure peer echo interval\n"
631 "Configure peer echo interval value in milliseconds\n")
634 bfd_peer_echo_transmit_interval
, bfd_profile_echo_transmit_interval_cmd
,
635 "echo transmit-interval (10-60000)$interval",
636 "Configure peer echo intervals\n"
637 "Configure desired transmit interval\n"
638 "Configure interval value in milliseconds\n")
641 bfd_peer_echo_receive_interval
, bfd_profile_echo_receive_interval_cmd
,
642 "echo receive-interval <disabled$disabled|(10-60000)$interval>",
643 "Configure peer echo intervals\n"
644 "Configure required receive interval\n"
645 "Disable echo packets receive\n"
646 "Configure interval value in milliseconds\n")
648 DEFPY_YANG(bfd_peer_profile
, bfd_peer_profile_cmd
,
649 "[no] profile BFDPROF$pname",
651 "Use BFD profile settings\n"
652 BFD_PROFILE_NAME_STR
)
655 nb_cli_enqueue_change(vty
, "./profile", NB_OP_DESTROY
, NULL
);
657 nb_cli_enqueue_change(vty
, "./profile", NB_OP_MODIFY
, pname
);
659 return nb_cli_apply_changes(vty
, NULL
);
662 void bfd_cli_peer_profile_show(struct vty
*vty
, const struct lyd_node
*dnode
,
665 vty_out(vty
, " profile %s\n", yang_dnode_get_string(dnode
, NULL
));
668 struct cmd_node bfd_profile_node
= {
669 .name
= "bfd profile",
670 .node
= BFD_PROFILE_NODE
,
671 .parent_node
= BFD_NODE
,
672 .prompt
= "%s(config-bfd-profile)# ",
675 static void bfd_profile_var(vector comps
, struct cmd_token
*token
)
677 extern struct bfdproflist bplist
;
678 struct bfd_profile
*bp
;
680 TAILQ_FOREACH (bp
, &bplist
, entry
) {
681 vector_set(comps
, XSTRDUP(MTYPE_COMPLETION
, bp
->name
));
685 static const struct cmd_variable_handler bfd_vars
[] = {
686 {.tokenname
= "BFDPROF", .completions
= bfd_profile_var
},
687 {.completions
= NULL
}
693 install_element(CONFIG_NODE
, &bfd_enter_cmd
);
694 install_element(CONFIG_NODE
, &bfd_config_reset_cmd
);
696 install_element(BFD_NODE
, &bfd_peer_enter_cmd
);
697 install_element(BFD_NODE
, &bfd_no_peer_cmd
);
699 install_element(BFD_PEER_NODE
, &bfd_peer_shutdown_cmd
);
700 install_element(BFD_PEER_NODE
, &bfd_peer_mult_cmd
);
701 install_element(BFD_PEER_NODE
, &bfd_peer_rx_cmd
);
702 install_element(BFD_PEER_NODE
, &bfd_peer_tx_cmd
);
703 install_element(BFD_PEER_NODE
, &bfd_peer_echo_cmd
);
704 install_element(BFD_PEER_NODE
, &bfd_peer_echo_interval_cmd
);
705 install_element(BFD_PEER_NODE
, &bfd_peer_echo_transmit_interval_cmd
);
706 install_element(BFD_PEER_NODE
, &bfd_peer_echo_receive_interval_cmd
);
707 install_element(BFD_PEER_NODE
, &bfd_peer_profile_cmd
);
708 install_element(BFD_PEER_NODE
, &bfd_peer_passive_cmd
);
709 install_element(BFD_PEER_NODE
, &bfd_peer_minimum_ttl_cmd
);
710 install_element(BFD_PEER_NODE
, &no_bfd_peer_minimum_ttl_cmd
);
712 /* Profile commands. */
713 cmd_variable_handler_register(bfd_vars
);
715 install_node(&bfd_profile_node
);
716 install_default(BFD_PROFILE_NODE
);
718 install_element(BFD_NODE
, &bfd_profile_cmd
);
719 install_element(BFD_NODE
, &no_bfd_profile_cmd
);
721 install_element(BFD_PROFILE_NODE
, &bfd_profile_mult_cmd
);
722 install_element(BFD_PROFILE_NODE
, &bfd_profile_tx_cmd
);
723 install_element(BFD_PROFILE_NODE
, &bfd_profile_rx_cmd
);
724 install_element(BFD_PROFILE_NODE
, &bfd_profile_shutdown_cmd
);
725 install_element(BFD_PROFILE_NODE
, &bfd_profile_echo_cmd
);
726 install_element(BFD_PROFILE_NODE
, &bfd_profile_echo_interval_cmd
);
727 install_element(BFD_PROFILE_NODE
, &bfd_profile_echo_transmit_interval_cmd
);
728 install_element(BFD_PROFILE_NODE
, &bfd_profile_echo_receive_interval_cmd
);
729 install_element(BFD_PROFILE_NODE
, &bfd_profile_passive_cmd
);
730 install_element(BFD_PROFILE_NODE
, &bfd_profile_minimum_ttl_cmd
);
731 install_element(BFD_PROFILE_NODE
, &no_bfd_profile_minimum_ttl_cmd
);