summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp_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 /vrrpd/vrrp_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 'vrrpd/vrrp_vty.c')
-rw-r--r--vrrpd/vrrp_vty.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/vrrpd/vrrp_vty.c b/vrrpd/vrrp_vty.c
index 892c8dadd..98e0e598e 100644
--- a/vrrpd/vrrp_vty.c
+++ b/vrrpd/vrrp_vty.c
@@ -744,9 +744,23 @@ static int vrrp_config_write_interface(struct vty *vty)
return write;
}
-static struct cmd_node interface_node = {INTERFACE_NODE, "%s(config-if)# ", 1};
-static struct cmd_node debug_node = {DEBUG_NODE, "", 1};
-static struct cmd_node vrrp_node = {VRRP_NODE, "", 1};
+static struct cmd_node interface_node = {
+ .node = INTERFACE_NODE,
+ .prompt = "%s(config-if)# ",
+ .vtysh = 1,
+};
+
+static struct cmd_node debug_node = {
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .vtysh = 1,
+};
+
+static struct cmd_node vrrp_node = {
+ .node = VRRP_NODE,
+ .prompt = "",
+ .vtysh = 1,
+};
void vrrp_vty_init(void)
{