summaryrefslogtreecommitdiffstats
path: root/ripd
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 /ripd
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 'ripd')
-rw-r--r--ripd/rip_debug.c1
-rw-r--r--ripd/rip_interface.c1
-rw-r--r--ripd/ripd.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c
index 676fc0cca..871ee8e87 100644
--- a/ripd/rip_debug.c
+++ b/ripd/rip_debug.c
@@ -175,6 +175,7 @@ DEFUN (no_debug_rip_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/ripd/rip_interface.c b/ripd/rip_interface.c
index 924eb8334..177f53db4 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -1195,6 +1195,7 @@ int rip_show_network_config(struct vty *vty, struct rip *rip)
static int rip_interface_config_write(struct vty *vty);
static struct cmd_node interface_node = {
+ .name = "interface",
.node = INTERFACE_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
diff --git a/ripd/ripd.c b/ripd/ripd.c
index b6bbfb253..fee700583 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -3330,6 +3330,7 @@ static int config_write_rip(struct vty *vty)
static int config_write_rip(struct vty *vty);
/* RIP node structure. */
static struct cmd_node rip_node = {
+ .name = "rip",
.node = RIP_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",