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 /ldpd | |
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 'ldpd')
-rw-r--r-- | ldpd/ldp_vty_conf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ldpd/ldp_vty_conf.c b/ldpd/ldp_vty_conf.c index 69aa3220b..ca82263b7 100644 --- a/ldpd/ldp_vty_conf.c +++ b/ldpd/ldp_vty_conf.c @@ -41,38 +41,45 @@ static int ldp_iface_is_configured(struct ldpd_conf *, const char *); struct cmd_node ldp_node = { .node = LDP_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-ldp)# ", .config_write = ldp_config_write, }; struct cmd_node ldp_ipv4_node = { .node = LDP_IPV4_NODE, + .parent_node = LDP_NODE, .prompt = "%s(config-ldp-af)# ", }; struct cmd_node ldp_ipv6_node = { .node = LDP_IPV6_NODE, + .parent_node = LDP_NODE, .prompt = "%s(config-ldp-af)# ", }; struct cmd_node ldp_ipv4_iface_node = { .node = LDP_IPV4_IFACE_NODE, + .parent_node = LDP_IPV4_NODE, .prompt = "%s(config-ldp-af-if)# ", }; struct cmd_node ldp_ipv6_iface_node = { .node = LDP_IPV6_IFACE_NODE, + .parent_node = LDP_IPV6_NODE, .prompt = "%s(config-ldp-af-if)# ", }; struct cmd_node ldp_l2vpn_node = { .node = LDP_L2VPN_NODE, + .parent_node = CONFIG_NODE, .prompt = "%s(config-l2vpn)# ", .config_write = ldp_l2vpn_config_write, }; struct cmd_node ldp_pseudowire_node = { .node = LDP_PSEUDOWIRE_NODE, + .parent_node = LDP_L2VPN_NODE, .prompt = "%s(config-l2vpn-pw)# ", }; |