summaryrefslogtreecommitdiff
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index c3199bcb5e..bb8d0c7744 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -3478,30 +3478,38 @@ DEFUN_HIDDEN (show_frr,
}
/* IP node for static routes. */
+static int zebra_ip_config(struct vty *vty);
static struct cmd_node ip_node = {
.node = IP_NODE,
.prompt = "",
+ .config_write = zebra_ip_config,
};
+static int config_write_protocol(struct vty *vty);
static struct cmd_node protocol_node = {
.node = PROTOCOL_NODE,
.prompt = "",
+ .config_write = config_write_protocol,
};
/* table node for routing tables. */
+static int config_write_table(struct vty *vty);
static struct cmd_node table_node = {
.node = TABLE_NODE,
.prompt = "",
+ .config_write = config_write_table,
};
+static int config_write_forwarding(struct vty *vty);
static struct cmd_node forwarding_node = {
.node = FORWARDING_NODE,
.prompt = "",
+ .config_write = config_write_forwarding,
};
/* Route VTY. */
void zebra_vty_init(void)
{
/* Install configuration write function. */
- install_node(&table_node, config_write_table);
- install_node(&forwarding_node, config_write_forwarding);
+ install_node(&table_node);
+ install_node(&forwarding_node);
install_element(VIEW_NODE, &show_ip_forwarding_cmd);
install_element(CONFIG_NODE, &ip_forwarding_cmd);
@@ -3515,8 +3523,8 @@ void zebra_vty_init(void)
/* Route-map */
zebra_route_map_init();
- install_node(&ip_node, zebra_ip_config);
- install_node(&protocol_node, config_write_protocol);
+ install_node(&ip_node);
+ install_node(&protocol_node);
install_element(CONFIG_NODE, &allow_external_route_update_cmd);
install_element(CONFIG_NODE, &no_allow_external_route_update_cmd);