Merge pull request #18380 from donaldsharp/non_peer_group

bgpd: Show bgp <afi> <safi> shouldn't display peers in groups
This commit is contained in:
Donatas Abraitis 2025-03-14 07:30:52 +01:00 committed by GitHub
commit 8982a81de1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12768,6 +12768,9 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
* though then we must display Advertised to on a path-by-path basis. */
if (!bgp_addpath_is_addpath_used(&bgp->tx_addpath, afi, safi)) {
for (ALL_LIST_ELEMENTS(bgp->peer, node, nnode, peer)) {
if (peer->group)
continue;
if (bgp_adj_out_lookup(peer, dest, 0)) {
if (json && !json_adv_to)
json_adv_to = json_object_new_object();