summaryrefslogtreecommitdiffstats
path: root/babeld
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 /babeld
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 'babeld')
-rw-r--r--babeld/babel_interface.c1
-rw-r--r--babeld/babeld.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c
index 072ad7060..21fb48163 100644
--- a/babeld/babel_interface.c
+++ b/babeld/babel_interface.c
@@ -60,6 +60,7 @@ static void babel_interface_free (babel_interface_nfo *bi);
static vector babel_enable_if; /* enable interfaces (by cmd). */
static int interface_config_write(struct vty *vty);
static struct cmd_node babel_interface_node = {
+ .name = "interface",
.node = INTERFACE_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-if)# ",
diff --git a/babeld/babeld.c b/babeld/babeld.c
index 6a83fa102..906f48564 100644
--- a/babeld/babeld.c
+++ b/babeld/babeld.c
@@ -72,6 +72,7 @@ static time_t source_expiry_time;
static int babel_config_write (struct vty *vty);
static struct cmd_node cmd_babel_node =
{
+ .name = "babel",
.node = BABEL_NODE,
.parent_node = CONFIG_NODE,
.prompt = "%s(config-router)# ",