summaryrefslogtreecommitdiff
path: root/bfdd/bfdd_vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 22:31:43 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (patch)
tree5fd4cb67296f7748d26a420ad6357615dcd3b382 /bfdd/bfdd_vty.c
parent249a771b63505b24d2a8c05158d7692384811533 (diff)
*: remove second parameter on install_node()
There is really no reason to not put this in the cmd_node. And while we're add it, rename from pointless ".func" to ".config_write". [v2: fix forgotten ldpd config_write] Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bfdd/bfdd_vty.c')
-rw-r--r--bfdd/bfdd_vty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
index ee0898d86c..62a0016a13 100644
--- a/bfdd/bfdd_vty.c
+++ b/bfdd/bfdd_vty.c
@@ -885,9 +885,11 @@ DEFUN_NOSH(show_debugging_bfd,
return CMD_SUCCESS;
}
+static int bfdd_write_config(struct vty *vty);
struct cmd_node bfd_node = {
.node = BFD_NODE,
.prompt = "%s(config-bfd)# ",
+ .config_write = bfdd_write_config,
};
struct cmd_node bfd_peer_node = {
@@ -943,11 +945,11 @@ void bfdd_vty_init(void)
install_element(CONFIG_NODE, &bfd_debug_network_cmd);
/* Install BFD node and commands. */
- install_node(&bfd_node, bfdd_write_config);
+ install_node(&bfd_node);
install_default(BFD_NODE);
/* Install BFD peer node. */
- install_node(&bfd_peer_node, NULL);
+ install_node(&bfd_peer_node);
install_default(BFD_PEER_NODE);
bfdd_cli_init();