diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-04-17 01:24:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 01:24:56 +0200 |
commit | 2ff99507ad97fed3c2a0910605bd72524f497441 (patch) | |
tree | bb013e5a0ce2068d41ef6497b66449a4a5921a16 /pimd | |
parent | Merge pull request #6239 from ton31337/fix/uint8_t_to_bool_for_any (diff) | |
parent | lib: #define FRR_CMD_NODE_20200416 (diff) | |
download | frr-2ff99507ad97fed3c2a0910605bd72524f497441.tar.xz frr-2ff99507ad97fed3c2a0910605bd72524f497441.zip |
Merge pull request #6135 from opensourcerouting/cli-node-cleanup
*: clean up the mess that is CLI command nodes
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_cmd.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index d6c500cdb..f99888b3a 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -70,10 +70,19 @@ #endif static struct cmd_node interface_node = { - INTERFACE_NODE, "%s(config-if)# ", 1 /* vtysh ? yes */ + .name = "interface", + .node = INTERFACE_NODE, + .parent_node = CONFIG_NODE, + .prompt = "%s(config-if)# ", + .config_write = pim_interface_config_write, }; -static struct cmd_node debug_node = {DEBUG_NODE, "", 1}; +static struct cmd_node debug_node = { + .name = "debug", + .node = DEBUG_NODE, + .prompt = "", + .config_write = pim_debug_config_write, +}; static struct vrf *pim_cmd_lookup_vrf(struct vty *vty, struct cmd_token *argv[], const int argc, int *idx) @@ -10827,11 +10836,10 @@ DEFUN_HIDDEN (ip_pim_mlag, void pim_cmd_init(void) { - install_node(&interface_node, - pim_interface_config_write); /* INTERFACE_NODE */ + install_node(&interface_node); /* INTERFACE_NODE */ if_cmd_init(); - install_node(&debug_node, pim_debug_config_write); + install_node(&debug_node); install_element(ENABLE_NODE, &pim_test_sg_keepalive_cmd); |