diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 23:15:09 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:00 +0200 |
commit | 243895805abcd27cc23f784c0b42036197fa1c3c (patch) | |
tree | b1cbf49040a4a5ce981ef84541cd8ad30384d4d4 /ospf6d | |
parent | *: remove second parameter on install_node() (diff) | |
download | frr-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 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_interface.c | 1 | ||||
-rw-r--r-- | ospf6d/ospf6_top.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 3d1c6f9fa..8ed9c6797 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1946,6 +1946,7 @@ static int config_write_ospf6_interface(struct vty *vty) static int config_write_ospf6_interface(struct vty *vty); static struct cmd_node interface_node = { .node = INTERFACE_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-if)# ", .config_write = config_write_ospf6_interface, }; diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index 616865621..75c0460ec 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c @@ -1116,6 +1116,7 @@ static int config_write_ospf6(struct vty *vty); /* OSPF6 node structure. */ static struct cmd_node ospf6_node = { .node = OSPF6_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-ospf6)# ", .config_write = config_write_ospf6, }; |