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 neighbor advertised paths including addpath #17423

Conversation

ton31337
Copy link
Member

Closes #17421

@frrbot frrbot bot added the bgp label Nov 13, 2024
@ton31337 ton31337 force-pushed the fix/show_advertised_routes_plain_with_addpath branch 2 times, most recently from 0f2b9d7 to b2b58a7 Compare November 13, 2024 11:27
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 <[email protected]>
@ton31337 ton31337 force-pushed the fix/show_advertised_routes_plain_with_addpath branch from b2b58a7 to 6cd813e Compare November 13, 2024 11:33
@ton31337 ton31337 force-pushed the fix/show_advertised_routes_plain_with_addpath branch from 6cd813e to 5cf9f6a Compare November 13, 2024 11:36
@donaldsharp donaldsharp merged commit ced2658 into FRRouting:master Nov 13, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/show_advertised_routes_plain_with_addpath branch November 13, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bgpd: addpath seems not work
2 participants