forked from Mirror/frr
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:
commit
8982a81de1
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue