summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_vty.c
diff options
context:
space:
mode:
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);