summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-29 20:34:56 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-29 20:35:25 +0200
commit9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49 (patch)
tree05933a71eadb8313ace4088f2cce576f43fc1a1a /pimd
parentMerge pull request #9222 from ton31337/fix/bgp_dampening_clear (diff)
downloadfrr-9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49.tar.xz
frr-9da01b0b7b6bc9a5cc129f850ff4f459ec33eb49.zip
*: cleanup interface node installation
The only difference in daemons' interface node definition is the config write function. No need to define the node in every daemon, just pass the callback as an argument to a library function and define the node there. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_cmd.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 37d206cc1..273100c49 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -72,14 +72,6 @@
#include "pimd/pim_cmd_clippy.c"
#endif
-static struct cmd_node interface_node = {
- .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 = {
.name = "debug",
.node = DEBUG_NODE,
@@ -11104,8 +11096,7 @@ DEFUN_HIDDEN (ip_pim_mlag,
void pim_cmd_init(void)
{
- install_node(&interface_node); /* INTERFACE_NODE */
- if_cmd_init();
+ if_cmd_init(pim_interface_config_write);
install_node(&debug_node);