Commit 9a1aae2
committed
bgpd: Show the real prefix for
Absolutely not possible to read the output and even distinguish the prefix
we are looking for.
Before:
```
donatas-pc# show ip bgp detail
BGP table version is 12, local router ID is 192.168.10.17, vrf id 0
Default local pref 100, local AS 65002
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
65001
2a02:4780:abc::2 from 2a02:4780:abc::2 (200.200.200.202)
(fe80::a00:27ff:fe5e:d19e) (used)
Origin incomplete, metric 0, valid, external, multipath
Last update: Tue Dec 13 22:53:16 2022
65001
192.168.10.124 from 192.168.10.124 (200.200.200.202)
Origin incomplete, metric 0, valid, external, otc 65001, multipath, best (Neighbor IP)
Last update: Tue Dec 13 22:53:16 2022
65001
2a02:4780:abc::2 from 2a02:4780:abc::2 (200.200.200.202)
(fe80::a00:27ff:fe5e:d19e) (used)
Origin IGP, metric 0, valid, external, multipath
Last update: Tue Dec 13 22:53:16 2022
65001
192.168.10.124 from 192.168.10.124 (200.200.200.202)
Origin IGP, metric 0, valid, external, otc 65001, multipath, best (Neighbor IP)
Last update: Tue Dec 13 22:53:16 2022
```
After:
```
donatas-pc# show ip bgp detail
BGP table version is 12, local router ID is 192.168.10.17, vrf id 0
Default local pref 100, local AS 65002
BGP routing table entry for 10.0.2.0/24, version 1
Paths: (2 available, best #2, table default)
Advertised to non peer-group peers:
2a02:4780:abc::2
65001
2a02:4780:abc::2 from 2a02:4780:abc::2 (200.200.200.202)
(fe80::a00:27ff:fe5e:d19e) (used)
Origin incomplete, metric 0, valid, external, multipath
Last update: Tue Dec 13 22:47:16 2022
BGP routing table entry for 10.0.2.0/24, version 1
Paths: (2 available, best #2, table default)
Advertised to non peer-group peers:
2a02:4780:abc::2
65001
192.168.10.124 from 192.168.10.124 (200.200.200.202)
Origin incomplete, metric 0, valid, external, otc 65001, multipath, best (Neighbor IP)
Last update: Tue Dec 13 22:47:16 2022
BGP routing table entry for 10.10.100.0/24, version 2
Paths: (2 available, best #2, table default)
Advertised to non peer-group peers:
2a02:4780:abc::2
65001
2a02:4780:abc::2 from 2a02:4780:abc::2 (200.200.200.202)
(fe80::a00:27ff:fe5e:d19e) (used)
Origin IGP, metric 0, valid, external, multipath
Last update: Tue Dec 13 22:47:16 2022
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>show bgp detail
1 parent 4f4728b commit 9a1aae2
1 file changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11248 | 11248 | | |
11249 | 11249 | | |
11250 | 11250 | | |
| 11251 | + | |
11251 | 11252 | | |
11252 | 11253 | | |
11253 | 11254 | | |
| |||
11281 | 11282 | | |
11282 | 11283 | | |
11283 | 11284 | | |
11284 | | - | |
11285 | | - | |
| 11285 | + | |
11286 | 11286 | | |
11287 | 11287 | | |
11288 | 11288 | | |
| |||
11545 | 11545 | | |
11546 | 11546 | | |
11547 | 11547 | | |
11548 | | - | |
11549 | | - | |
11550 | | - | |
11551 | | - | |
| 11548 | + | |
| 11549 | + | |
| 11550 | + | |
| 11551 | + | |
| 11552 | + | |
| 11553 | + | |
11552 | 11554 | | |
11553 | 11555 | | |
11554 | 11556 | | |
11555 | 11557 | | |
11556 | 11558 | | |
11557 | 11559 | | |
11558 | | - | |
| 11560 | + | |
11559 | 11561 | | |
11560 | 11562 | | |
11561 | 11563 | | |
| |||
11598 | 11600 | | |
11599 | 11601 | | |
11600 | 11602 | | |
11601 | | - | |
| 11603 | + | |
| 11604 | + | |
| 11605 | + | |
| 11606 | + | |
| 11607 | + | |
| 11608 | + | |
| 11609 | + | |
| 11610 | + | |
| 11611 | + | |
| 11612 | + | |
| 11613 | + | |
| 11614 | + | |
| 11615 | + | |
11602 | 11616 | | |
11603 | 11617 | | |
11604 | 11618 | | |
11605 | 11619 | | |
11606 | 11620 | | |
11607 | 11621 | | |
11608 | | - | |
| 11622 | + | |
11609 | 11623 | | |
11610 | 11624 | | |
| 11625 | + | |
11611 | 11626 | | |
11612 | 11627 | | |
11613 | 11628 | | |
| |||
0 commit comments