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 /pbrd | |
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 'pbrd')
-rw-r--r-- | pbrd/pbr_vty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 2f5d4dcbc..35dbb24d1 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -732,6 +732,7 @@ DEFUN_NOSH(show_debugging_pbr, static int pbr_interface_config_write(struct vty *vty); static struct cmd_node interface_node = { .node = INTERFACE_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-if)# ", .config_write = pbr_interface_config_write, }; @@ -765,6 +766,7 @@ static int pbr_vty_map_config_write(struct vty *vty); /* PBR map node structure. */ static struct cmd_node pbr_map_node = { .node = PBRMAP_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-pbr-map)# ", .config_write = pbr_vty_map_config_write, }; |