summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-01-28 12:00:40 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-01-28 15:35:16 +0100
commit85eeb0291554d3cbe0f4844406abc7f17bfd5ed9 (patch)
tree074c8646bd423845776d1fa79134f2de979b8c4d /bgpd/bgp_vty.h
parentMerge pull request #7952 from kuldeepkash/documentation (diff)
downloadfrr-85eeb0291554d3cbe0f4844406abc7f17bfd5ed9.tar.xz
frr-85eeb0291554d3cbe0f4844406abc7f17bfd5ed9.zip
bgpd: Add `show bgp summary wide` command
Add LocalAS into wide output and extend Desc to 64 chars instead of 20. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r--bgpd/bgp_vty.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index 07f61ab0e..85619dd07 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -53,6 +53,12 @@ struct bgp;
" Helper - GR Mode-Helper,\n" \
" Disable - GR Mode-Disable.\n\n"
+#define BGP_SHOW_SUMMARY_HEADER_ALL \
+ "V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc\n"
+#define BGP_SHOW_SUMMARY_HEADER_ALL_WIDE \
+ "V AS LocalAS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc\n"
+#define BGP_SHOW_SUMMARY_HEADER_FAILED "EstdCnt DropCnt ResetTime Reason\n"
+
#define BGP_SHOW_PEER_GR_CAPABILITY( \
vty, p, use_json, json) \
do { \
@@ -178,8 +184,7 @@ 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, bool show_failed,
- bool show_established, bool use_json);
+ safi_t safi, 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,