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 /zebra/interface.c | |
| parent | 612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (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 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 8d119eac7b..f4b330d8a8 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1667,6 +1667,7 @@ static void interface_update_stats(void) static int if_config_write(struct vty *vty); struct cmd_node interface_node = { .node = INTERFACE_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-if)# ", .config_write = if_config_write, }; @@ -2080,6 +2081,7 @@ DEFUN (no_bandwidth_if, struct cmd_node link_params_node = { .node = LINK_PARAMS_NODE, + .parent_node = INTERFACE_NODE, .prompt = "%s(config-link-params)# ", }; |
