summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-09 00:15:50 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:59 +0200
commitf4b8291fcbcfb16c23d07c60d4669afaf396dbea (patch)
tree3b121c1e3ac8dc7a2d67ca965f4c8e4546e404c1 /ldpd
parent*: move CLI parent data to cmd_node->parent_node (diff)
downloadfrr-f4b8291fcbcfb16c23d07c60d4669afaf396dbea.tar.xz
frr-f4b8291fcbcfb16c23d07c60d4669afaf396dbea.zip
*: move CLI node names to cmd_node->name
And again for the name. Why on earth would we centralize this, just so people can forget to update it? Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldp_debug.c1
-rw-r--r--ldpd/ldp_vty_conf.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/ldpd/ldp_debug.c b/ldpd/ldp_debug.c
index 59d8676ec..b9ef60ff9 100644
--- a/ldpd/ldp_debug.c
+++ b/ldpd/ldp_debug.c
@@ -33,6 +33,7 @@ static int ldp_debug_config_write(struct vty *);
/* Debug node. */
struct cmd_node ldp_debug_node = {
+ .name = "debug",
.node = DEBUG_NODE,
.prompt = "",
.config_write = ldp_debug_config_write,
diff --git a/ldpd/ldp_vty_conf.c b/ldpd/ldp_vty_conf.c
index ca82263b7..3abd0817a 100644
--- a/ldpd/ldp_vty_conf.c
+++ b/ldpd/ldp_vty_conf.c
@@ -40,6 +40,7 @@ static int ldp_vty_get_af(struct vty *);
static int ldp_iface_is_configured(struct ldpd_conf *, const char *);
struct cmd_node ldp_node = {
+ .name = "ldp",
.node = LDP_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-ldp)# ",
@@ -47,30 +48,35 @@ struct cmd_node ldp_node = {
};
struct cmd_node ldp_ipv4_node = {
+ .name = "ldp ipv4",
.node = LDP_IPV4_NODE,
.parent_node = LDP_NODE,
.prompt = "%s(config-ldp-af)# ",
};
struct cmd_node ldp_ipv6_node = {
+ .name = "ldp ipv6",
.node = LDP_IPV6_NODE,
.parent_node = LDP_NODE,
.prompt = "%s(config-ldp-af)# ",
};
struct cmd_node ldp_ipv4_iface_node = {
+ .name = "ldp ipv4 interface",
.node = LDP_IPV4_IFACE_NODE,
.parent_node = LDP_IPV4_NODE,
.prompt = "%s(config-ldp-af-if)# ",
};
struct cmd_node ldp_ipv6_iface_node = {
+ .name = "ldp ipv6 interface",
.node = LDP_IPV6_IFACE_NODE,
.parent_node = LDP_IPV6_NODE,
.prompt = "%s(config-ldp-af-if)# ",
};
struct cmd_node ldp_l2vpn_node = {
+ .name = "ldp l2vpn",
.node = LDP_L2VPN_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-l2vpn)# ",
@@ -78,6 +84,7 @@ struct cmd_node ldp_l2vpn_node = {
};
struct cmd_node ldp_pseudowire_node = {
+ .name = "ldp",
.node = LDP_PSEUDOWIRE_NODE,
.parent_node = LDP_L2VPN_NODE,
.prompt = "%s(config-l2vpn-pw)# ",