Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Show PfxSnt for show bgp <afi> <safi> command #6277

Merged
merged 2 commits into from
Apr 24, 2020
Merged

bgpd: Show PfxSnt for show bgp <afi> <safi> command #6277

merged 2 commits into from
Apr 24, 2020

Conversation

ton31337
Copy link
Member

@ton31337 ton31337 commented Apr 22, 2020

JSON output was already in, just printing in CLI as well.

root@exit1-debian-9:~# vtysh -c 'show bgp ipv4 summary'

IPv4 Unicast Summary:
BGP router identifier 10.10.10.1, local AS number 65001 vrf-id 0
BGP table version 100003
RIB entries 200005, using 37 MiB of memory
Peers 1, using 21 KiB of memory

... MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt
...      64       157        0    0    0 00:01:18            0   100003

Total number of neighbors 1

JSON:

root@exit1-debian-9:~# vtysh -c 'show bgp ipv4 summary json' \ |
> jq '.ipv4Unicast.peers."192.168.0.2".pfxSnt'
100003

Closes #6273

Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com

@polychaeta polychaeta added the bgp label Apr 22, 2020
Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/ff03b5a3794e335d9080db5d3737dece/raw/0487217ba1b5cb00d2ebb47383de5d7775ccb94f/cr_6277_1587587861.diff | git apply

diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 96fe9e413..92469eb70 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -9047,7 +9047,7 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
 					vty_out(vty, "EstdCnt DropCnt ResetTime Reason\n");
 				else
 					vty_out(vty,
-					"V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt\n");
+						"V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt\n");
 			}
 		}
 

If you are a new contributor to FRR, please see our contributing guidelines.

@NetDEF-CI

This comment has been minimized.

@NetDEF-CI

This comment has been minimized.

@NetDEF-CI

This comment has been minimized.

@LabN-CI

This comment has been minimized.

JSON output was already in, just printing in CLI as well.

```
root@exit1-debian-9:~# vtysh -c 'show bgp ipv4 summary'

IPv4 Unicast Summary:
BGP router identifier 10.10.10.1, local AS number 65001 vrf-id 0
BGP table version 100003
RIB entries 200005, using 37 MiB of memory
Peers 1, using 21 KiB of memory

... MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt
...      64       157        0    0    0 00:01:18            0   100003

Total number of neighbors 1
```

JSON:

```
root@exit1-debian-9:~# vtysh -c 'show bgp ipv4 summary json' \ |
> jq '.ipv4Unicast.peers."192.168.0.2".pfxSnt'
100003
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
@polychaeta polychaeta added the tests Topotests, make check, etc label Apr 23, 2020
@NetDEF-CI

This comment has been minimized.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-12008/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-12008/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.4.1 (current is 4.3.0)
W: frr source: pkg-js-tools-test-is-missing
W: frr source: newer-standards-version 4.4.1 (current is 4.3.0)
W: frr-doc: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200423-01-g6e0f90413-0 (missing) -> 7.4-dev-20200423-01-g6e0f90413-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200423-01-g6e0f90413-0 (missing) -> 7.4-dev-20200423-01-g6e0f90413-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200423-01-g6e0f90413-0 (missing) -> 7.4-dev-20200423-01-g6e0f90413-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200423-01-g6e0f90413-0 (missing) -> 7.4-dev-20200423-01-g6e0f90413-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200423-01-g6e0f90413-0 (missing) -> 7.4-dev-20200423-01-g6e0f90413-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Apr 23, 2020

Outdated results 🚧

Basic BGPD CI results: Partial FAILURE, 251 tests failed

_ _
Result SUCCESS git merge/6277 1adbf04
Date 04/23/2020
Start 05:00:44
Finish 08:32:31
Run-Time 03:31:47
Total 1769
Pass 1518
Fail 251
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-04-23-05:00:44.txt
Log autoscript-2020-04-23-05:01:42.log.bz2
Memory 501 484 164

For details, please contact louberger

@ton31337
Copy link
Member Author

@louberger could you take a look at what's wrong there?

@LabN-CI
Copy link
Collaborator

LabN-CI commented Apr 23, 2020

🚧 Basic BGPD CI results: Partial FAILURE, 251 tests failed

Results table
_ _
Result SUCCESS git merge/6277 6e0f904
Date 04/23/2020
Start 09:30:08
Finish 13:01:33
Run-Time 03:31:25
Total 1769
Pass 1518
Fail 251
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-04-23-09:30:08.txt
Log autoscript-2020-04-23-09:31:06.log.bz2
Memory 460 466 236

For details, please contact louberger

@srimohans srimohans self-requested a review April 23, 2020 17:43
@srimohans srimohans merged commit 7a54a2c into FRRouting:master Apr 24, 2020
@ton31337
Copy link
Member Author

@srimohans I think we should revert this because I was still waiting for @louberger for more information regarding #6277 (comment) :)

@srimohans
Copy link
Contributor

@ton31337 Sorry I missed that. Please go ahead and revert.

Thanks.

@ton31337
Copy link
Member Author

Created revert PR #6292

@ton31337 ton31337 deleted the feature/show_bgp_afi_safi_sndpfx branch April 24, 2020 07:02
@ton31337 ton31337 restored the feature/show_bgp_afi_safi_sndpfx branch April 24, 2020 12:09
@ton31337 ton31337 deleted the feature/show_bgp_afi_safi_sndpfx branch April 24, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bgp tests Topotests, make check, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add column with sent prefixes under sh bgp <afi> <safi> summary
5 participants