summaryrefslogtreecommitdiff
path: root/bgpd/bgp_dump.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 15:15:50 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 15:15:50 +0000
commit4dcadbefd00d7c4c97a16f3adc591bd4478965df (patch)
treeacecbc7c32d2478e02018dfbcb230b2a6a9d4c39 /bgpd/bgp_dump.c
parent69642336f03b4097a2122a05c92ab0bc5a1a8836 (diff)
bgpd: argv update for all but bgp_vty.c
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r--bgpd/bgp_dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index e219d5248e..52989385d1 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -742,7 +742,7 @@ DEFUN (dump_bgp_all,
const struct bgp_dump_type_map *map = NULL;
for (map = bgp_dump_type_map; map->str; map++)
- if (strcmp(argv[0], map->str) == 0)
+ if (strcmp(argv[2]->arg, map->str) == 0)
bgp_dump_type = map->type;
switch (bgp_dump_type)
@@ -763,10 +763,10 @@ DEFUN (dump_bgp_all,
/* When an interval is given */
if (argc == 3)
- interval = argv[2];
+ interval = argv[4]->arg;
return bgp_dump_set (vty, bgp_dump_struct, bgp_dump_type,
- argv[1], interval);
+ argv[3]->arg, interval);
}
DEFUN (no_dump_bgp_all,
@@ -786,7 +786,7 @@ DEFUN (no_dump_bgp_all,
struct bgp_dump *bgp_dump_struct = NULL;
for (map = bgp_dump_type_map; map->str; map++)
- if (strcmp(argv[0], map->str) == 0)
+ if (strcmp(argv[3]->arg, map->str) == 0)
bgp_dump_type = map->type;
switch (bgp_dump_type)