summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_cli.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 23:15:09 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit243895805abcd27cc23f784c0b42036197fa1c3c (patch)
treeb1cbf49040a4a5ce981ef84541cd8ad30384d4d4 /eigrpd/eigrp_cli.c
parent612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (diff)
*: move CLI parent data to cmd_node->parent_node
Same as before, instead of shoving this into a big central list we can just put the parent node in cmd_node. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'eigrpd/eigrp_cli.c')
-rw-r--r--eigrpd/eigrp_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eigrpd/eigrp_cli.c b/eigrpd/eigrp_cli.c
index 5111952860..502d29ebf9 100644
--- a/eigrpd/eigrp_cli.c
+++ b/eigrpd/eigrp_cli.c
@@ -841,6 +841,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 = {
.node = EIGRP_NODE,
+ .parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",
.config_write = eigrp_config_write,
};
@@ -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 = {
.node = INTERFACE_NODE,
+ .parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
.config_write = eigrp_write_interface,
};