summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls_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 /zebra/zebra_mpls_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 'zebra/zebra_mpls_vty.c')
-rw-r--r--zebra/zebra_mpls_vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_mpls_vty.c b/zebra/zebra_mpls_vty.c
index 9137f3882..148b9c46d 100644
--- a/zebra/zebra_mpls_vty.c
+++ b/zebra/zebra_mpls_vty.c
@@ -449,10 +449,12 @@ DEFUN (no_mpls_label_global_block,
return zebra_mpls_global_block(vty, 0, NULL, NULL);
}
+static int zebra_mpls_config(struct vty *vty);
/* MPLS node for MPLS LSP. */
static struct cmd_node mpls_node = {
.node = MPLS_NODE,
.prompt = "",
+ .config_write = zebra_mpls_config,
};
/* MPLS VTY. */
@@ -460,7 +462,7 @@ void zebra_mpls_vty_init(void)
{
install_element(VIEW_NODE, &show_mpls_status_cmd);
- install_node(&mpls_node, zebra_mpls_config);
+ install_node(&mpls_node);
install_element(CONFIG_NODE, &mpls_transit_lsp_cmd);
install_element(CONFIG_NODE, &no_mpls_transit_lsp_cmd);