]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Show neighbor advertised paths including addpath
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 13 Nov 2024 09:47:33 +0000 (11:47 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 13 Nov 2024 11:32:28 +0000 (13:32 +0200)
commit98ca49e0ee581259903e8ab2d6306e61dfc87606
treeb0a36759cc4023f7f78e1fa1d44638d41fa2553a
parent5456bc5d9313b53b8059583cba7c95f55f08a26b
bgpd: Show neighbor advertised paths including addpath

Without the patch only the best path is displayed.

With the patch, display all paths including addpaths, but only for non-JSON
output to avoid breaking existing output.

E.g.:

```
munet> r2 shi vtysh -c 'sh ip bgp nei 192.168.2.3 advertised-routes'
     Network          Next Hop            Metric LocPrf Weight Path
 *>  172.16.16.254/32 192.168.2.3              0             0 65003 ?
 *   172.16.16.254/32 192.168.2.4              0             0 65004 ?
 *>  192.168.2.0/24   192.168.2.3              0             0 65003 ?
 *   192.168.2.0/24   192.168.2.4              0             0 65004 ?
```

Before it was:

```
munet> r2 shi vtysh -c 'sh ip bgp nei 192.168.2.3 advertised-routes'
     Network          Next Hop            Metric LocPrf Weight Path
 *>  172.16.16.254/32 192.168.2.3              0             0 65003 ?
 *>  192.168.2.0/24   192.168.2.3              0             0 65003 ?
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_route.c