summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls_vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 21:46:23 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit62b346eefa1b9e09c9372f5b6376e1bca4162015 (patch)
tree2e3bc16d1d0765ab033c7ffd24ca58b3b5d35168 /zebra/zebra_mpls_vty.c
parentMerge pull request #6237 from ton31337/fix/show_hostname_in_bgp (diff)
downloadfrr-62b346eefa1b9e09c9372f5b6376e1bca4162015.tar.xz
frr-62b346eefa1b9e09c9372f5b6376e1bca4162015.zip
*: clean up cmd_node initializers
... and use named assignments everywhere (so I can change the struct.) Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'zebra/zebra_mpls_vty.c')
-rw-r--r--zebra/zebra_mpls_vty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/zebra_mpls_vty.c b/zebra/zebra_mpls_vty.c
index 796aa3f66..78a3110ea 100644
--- a/zebra/zebra_mpls_vty.c
+++ b/zebra/zebra_mpls_vty.c
@@ -450,7 +450,11 @@ DEFUN (no_mpls_label_global_block,
}
/* MPLS node for MPLS LSP. */
-static struct cmd_node mpls_node = {MPLS_NODE, "", 1};
+static struct cmd_node mpls_node = {
+ .node = MPLS_NODE,
+ .prompt = "",
+ .vtysh = 1,
+};
/* MPLS VTY. */
void zebra_mpls_vty_init(void)