From f4b8291fcbcfb16c23d07c60d4669afaf396dbea Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 9 Sep 2018 00:15:50 +0200 Subject: *: 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 --- isisd/isis_circuit.c | 1 + isisd/isisd.c | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'isisd') diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index 47e91ac10..4add1e6bf 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -1335,6 +1335,7 @@ ferr_r isis_circuit_passwd_hmac_md5_set(struct isis_circuit *circuit, } struct cmd_node interface_node = { + .name = "interface", .node = INTERFACE_NODE, .parent_node = CONFIG_NODE, .prompt = "%s(config-if)# ", diff --git a/isisd/isisd.c b/isisd/isisd.c index a776e2da0..2bb028f5f 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -786,6 +786,7 @@ DEFUN_NOSH (show_debugging, static int config_write_debug(struct vty *vty); /* Debug node. */ static struct cmd_node debug_node = { + .name = "debug", .node = DEBUG_NODE, .prompt = "", .config_write = config_write_debug, @@ -2128,6 +2129,13 @@ static int isis_config_write(struct vty *vty) return write; } +struct cmd_node router_node = { + .name = "openfabric", + .node = OPENFABRIC_NODE, + .parent_node = CONFIG_NODE, + .prompt = "%s(config-router)# ", + .config_write = isis_config_write, +}; #else /* IS-IS configuration write function */ static int isis_config_write(struct vty *vty) @@ -2143,14 +2151,15 @@ static int isis_config_write(struct vty *vty) return write; } -#endif /* ifdef FABRICD */ struct cmd_node router_node = { - .node = ROUTER_NODE, + .name = "isis", + .node = ISIS_NODE, .parent_node = CONFIG_NODE, .prompt = "%s(config-router)# ", .config_write = isis_config_write, }; +#endif /* ifdef FABRICD */ void isis_init(void) { -- cgit v1.2.3