summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-09 00:15:50 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:59 +0200
commitf4b8291fcbcfb16c23d07c60d4669afaf396dbea (patch)
tree3b121c1e3ac8dc7a2d67ca965f4c8e4546e404c1 /ripngd
parent*: move CLI parent data to cmd_node->parent_node (diff)
downloadfrr-f4b8291fcbcfb16c23d07c60d4669afaf396dbea.tar.xz
frr-f4b8291fcbcfb16c23d07c60d4669afaf396dbea.zip
*: move CLI node names to cmd_node->name
And again for the name. Why on earth would we centralize this, just so people can forget to update it? Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripng_debug.c1
-rw-r--r--ripngd/ripng_interface.c1
-rw-r--r--ripngd/ripngd.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/ripngd/ripng_debug.c b/ripngd/ripng_debug.c
index 117148a3a..54edb17ec 100644
--- a/ripngd/ripng_debug.c
+++ b/ripngd/ripng_debug.c
@@ -177,6 +177,7 @@ DEFUN (no_debug_ripng_zebra,
static int config_write_debug(struct vty *vty);
/* Debug node. */
static struct cmd_node debug_node = {
+ .name = "debug",
.node = DEBUG_NODE,
.prompt = "",
.config_write = config_write_debug,
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index e45bbbe21..e8c907227 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -957,6 +957,7 @@ static int interface_config_write(struct vty *vty)
static int interface_config_write(struct vty *vty);
/* ripngd's interface node. */
static struct cmd_node interface_node = {
+ .name = "interface",
.node = INTERFACE_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 47083f947..d26e10386 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -2437,6 +2437,7 @@ static int ripng_config_write(struct vty *vty)
static int ripng_config_write(struct vty *vty);
/* RIPng node structure. */
static struct cmd_node cmd_ripng_node = {
+ .name = "ripng",
.node = RIPNG_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",