diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2021-05-12 18:54:11 +0200 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2021-06-08 10:47:35 +0200 |
| commit | 96c81f66717110e0bf77f5dfa043d9862896d495 (patch) | |
| tree | eec49df4b47854241d5401ddcb18a3fd403cb9b5 /bgpd/bgp_damp.h | |
| parent | ce1944f06a4bd09458f496bf4fc9528b61115e92 (diff) | |
bgpd: add terse display option on show bgp summary
Add a terse option to show bgp summary to shorten output.
Do not show the following information about the BGP
instances: the number of RIB entries, the table version and the used memory.
The "terse" option can be used in combination with the "remote-as", "neighbor",
"failed" and "established" filters, and with the "wide" option as well.
Before patch:
ubuntu# show bgp summary remote-as 123456
IPv4 Unicast Summary (VRF default):
BGP router identifier X.X.X.X, local AS number XXX vrf-id 0
BGP table version 0
RIB entries 3, using 552 bytes of memory
Peers 5, using 3635 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.200.200.2 4 123456 81432 4 0 56092 0 00:00:13 572106 0 N/A
Displayed neighbors 1
Total number of neighbors 4
IPv6 Unicast Summary (VRF default):
BGP router identifier X.X.X.X, local AS number XXX vrf-id 0
BGP table version 0
RIB entries 3, using 552 bytes of memory
Peers 5, using 3635 KiB of memory
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
% No matching neighbor
Total number of neighbors 5
After patch:
ubuntu# show bgp summary remote-as 123456 terse
IPv4 Unicast Summary (VRF default):
BGP router identifier X.X.X.X, local AS number XXX vrf-id 0
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
10.200.200.2 4 123456 81432 4 0 56092 0 00:00:13 572106 0 N/A
Displayed neighbors 1
Total number of neighbors 4
IPv6 Unicast Summary (VRF default):
BGP router identifier X.X.X.X, local AS number XXX vrf-id 1
% No matching neighbor
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_damp.h')
| -rw-r--r-- | bgpd/bgp_damp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_damp.h b/bgpd/bgp_damp.h index 3c8f138d6a..c03a0cc5c9 100644 --- a/bgpd/bgp_damp.h +++ b/bgpd/bgp_damp.h @@ -166,7 +166,7 @@ extern const char *bgp_damp_reuse_time_vty(struct vty *vty, safi_t safi, bool use_json, json_object *json); extern int bgp_show_dampening_parameters(struct vty *vty, afi_t, safi_t, - uint8_t); + uint16_t); extern void bgp_peer_damp_enable(struct peer *peer, afi_t afi, safi_t safi, time_t half, unsigned int reuse, unsigned int suppress, time_t max); |
