summaryrefslogtreecommitdiffstats
path: root/eigrpd
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 /eigrpd
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 'eigrpd')
-rw-r--r--eigrpd/eigrp_cli.c2
-rw-r--r--eigrpd/eigrp_dump.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/eigrpd/eigrp_cli.c b/eigrpd/eigrp_cli.c
index 502d29ebf..c76e06768 100644
--- a/eigrpd/eigrp_cli.c
+++ b/eigrpd/eigrp_cli.c
@@ -840,6 +840,7 @@ void eigrp_cli_show_keychain(struct vty *vty, struct lyd_node *dnode,
*/
static int eigrp_config_write(struct vty *vty);
static struct cmd_node eigrp_node = {
+ .name = "eigrp",
.node = EIGRP_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",
@@ -862,6 +863,7 @@ static int eigrp_config_write(struct vty *vty)
static int eigrp_write_interface(struct vty *vty);
static struct cmd_node eigrp_interface_node = {
+ .name = "interface",
.node = INTERFACE_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c
index 05a25a433..a3d6eb2e9 100644
--- a/eigrpd/eigrp_dump.c
+++ b/eigrpd/eigrp_dump.c
@@ -557,6 +557,7 @@ DEFUN (no_debug_eigrp_packets,
/* Debug node. */
static int config_write_debug(struct vty *vty);
static struct cmd_node eigrp_debug_node = {
+ .name = "debug",
.node = DEBUG_NODE,
.prompt = "",
.config_write = config_write_debug,