summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-02-14 14:40:57 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-03-31 14:38:15 +0200
commit4265b26111b162f1504c32430d3c15635e372c1b (patch)
tree2b5993f0d7e7773af96183d8f836042d209cc1ea /bgpd/bgp_vty.h
parentbgpd: permit to get statistics for other bgp safis (diff)
downloadfrr-4265b26111b162f1504c32430d3c15635e372c1b.tar.xz
frr-4265b26111b162f1504c32430d3c15635e372c1b.zip
bgpd: new vty command to dump all bgp per vrf statistics
this command is a shortcut to facilitate the extraction of statistics for all afi/safi related to one bgp instance. the command is: show bgp [vrf XX] statistics-all [json] Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r--bgpd/bgp_vty.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index fa7b96d87..3f06584cc 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -175,6 +175,9 @@ extern int bgp_vty_find_and_parse_afi_safi_bgp(struct vty *vty,
int argc, int *idx, afi_t *afi,
safi_t *safi, struct bgp **bgp,
bool use_json);
+int bgp_vty_find_and_parse_bgp(struct vty *vty,
+ struct cmd_token **argv, int argc,
+ struct bgp **bgp, bool use_json);
extern int bgp_show_summary_vty(struct vty *vty, const char *name, afi_t afi,
safi_t safi, bool show_failed, bool use_json);