summaryrefslogtreecommitdiff
path: root/bgpd/bgp_dump.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 22:31:43 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (patch)
tree5fd4cb67296f7748d26a420ad6357615dcd3b382 /bgpd/bgp_dump.c
parent249a771b63505b24d2a8c05158d7692384811533 (diff)
*: remove second parameter on install_node()
There is really no reason to not put this in the cmd_node. And while we're add it, rename from pointless ".func" to ".config_write". [v2: fix forgotten ldpd config_write] Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r--bgpd/bgp_dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index 498950f547..36efcd5380 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -777,10 +777,12 @@ DEFUN (no_dump_bgp_all,
return bgp_dump_unset(bgp_dump_struct);
}
+static int config_write_bgp_dump(struct vty *vty);
/* BGP node structure. */
static struct cmd_node bgp_dump_node = {
.node = DUMP_NODE,
.prompt = "",
+ .config_write = config_write_bgp_dump,
};
#if 0
@@ -860,7 +862,7 @@ void bgp_dump_init(void)
stream_new((BGP_MAX_PACKET_SIZE << 1) + BGP_DUMP_MSG_HEADER
+ BGP_DUMP_HEADER_SIZE);
- install_node(&bgp_dump_node, config_write_bgp_dump);
+ install_node(&bgp_dump_node);
install_element(CONFIG_NODE, &dump_bgp_all_cmd);
install_element(CONFIG_NODE, &no_dump_bgp_all_cmd);