summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_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 /vrrpd/vrrp_vty.c
parent*: remove cmd_node->vtysh (diff)
downloadfrr-612c2c15d86e0e5c7e35f1a9a1491f90f365b93c.tar.xz
frr-612c2c15d86e0e5c7e35f1a9a1491f90f365b93c.zip
*: 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 'vrrpd/vrrp_vty.c')
-rw-r--r--vrrpd/vrrp_vty.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c
index e1dd0a2d4..98ce74593 100644
--- a/vrrpd/vrrp_vty.c
+++ b/vrrpd/vrrp_vty.c
@@ -747,23 +747,26 @@ static int vrrp_config_write_interface(struct vty *vty)
static struct cmd_node interface_node = {
.node = INTERFACE_NODE,
.prompt = "%s(config-if)# ",
+ .config_write = vrrp_config_write_interface,
};
static struct cmd_node debug_node = {
.node = DEBUG_NODE,
.prompt = "",
+ .config_write = vrrp_config_write_debug,
};
static struct cmd_node vrrp_node = {
.node = VRRP_NODE,
.prompt = "",
+ .config_write = vrrp_config_write_global,
};
void vrrp_vty_init(void)
{
- install_node(&debug_node, vrrp_config_write_debug);
- install_node(&interface_node, vrrp_config_write_interface);
- install_node(&vrrp_node, vrrp_config_write_global);
+ install_node(&debug_node);
+ install_node(&interface_node);
+ install_node(&vrrp_node);
if_cmd_init();
install_element(VIEW_NODE, &vrrp_vrid_show_cmd);