summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.h
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2021-05-12 17:17:56 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2021-05-26 16:16:08 +0200
commit8c1d4cd512af258dfab9379117157f85dcf102e8 (patch)
tree2f059db36328c268e354e40e2c6de3e808bcd66b /bgpd/bgp_vty.h
parentMerge pull request #8730 from idryzhov/staticd-distance (diff)
downloadfrr-8c1d4cd512af258dfab9379117157f85dcf102e8.tar.xz
frr-8c1d4cd512af258dfab9379117157f85dcf102e8.zip
bgpd: add show bgp summary filter by neighbor or AS
Add ability to filter session on show bgp summary by neighbor or remote AS: ubuntu# show bgp summary ? neighbor Show only the specified neighbor session remote-as Show only the specified remote AS session ubuntu# show bgp summary neighbor ? A.B.C.D Neighbor to display information about WORD Neighbor on BGP configured interface X:X::X:X Neighbor to display information about ubuntu# show bgp summary remote-as ? (1-4294967295) AS number external External (eBGP) AS sessions internal Internal (iBGP) AS sessions This patch includes the documentation and the topotest. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r--bgpd/bgp_vty.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index 051b2e958..2531488d0 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -185,7 +185,8 @@ extern int bgp_vty_find_and_parse_afi_safi_bgp(struct vty *vty,
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, uint8_t show_flags);
+ safi_t safi, const char *neighbor, int as_type,
+ as_t as, uint8_t show_flags);
extern int bgp_clear_star_soft_in(const char *name, char *errmsg,
size_t errmsg_len);
extern int bgp_clear_star_soft_out(const char *name, char *errmsg,