summaryrefslogtreecommitdiffstats
path: root/ripngd
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 /ripngd
parent*: remove second parameter on install_node() (diff)
downloadfrr-243895805abcd27cc23f784c0b42036197fa1c3c.tar.xz
frr-243895805abcd27cc23f784c0b42036197fa1c3c.zip
*: 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 'ripngd')
-rw-r--r--ripngd/ripng_interface.c1
-rw-r--r--ripngd/ripngd.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index efaabdb6d..e45bbbe21 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -958,6 +958,7 @@ static int interface_config_write(struct vty *vty);
/* ripngd's interface node. */
static struct cmd_node interface_node = {
.node = INTERFACE_NODE,
+ .parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
.config_write = interface_config_write,
};
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index cde8d860e..47083f947 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -2438,6 +2438,7 @@ static int ripng_config_write(struct vty *vty);
/* RIPng node structure. */
static struct cmd_node cmd_ripng_node = {
.node = RIPNG_NODE,
+ .parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",
.config_write = ripng_config_write,
};