2 * bgp_updgrp_adv.c: BGP update group advertisement and adjacency
6 * @copyright Copyright (C) 2014 Cumulus Networks, Inc.
8 * @author Avneesh Sachdev <avneesh@sproute.net>
9 * @author Rajesh Varadarajan <rajesh@sproute.net>
10 * @author Pradosh Mohapatra <pradosh@sproute.net>
12 * This file is part of GNU Zebra.
14 * GNU Zebra is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License as published by the
16 * Free Software Foundation; either version 2, or (at your option) any
19 * GNU Zebra is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
24 * You should have received a copy of the GNU General Public License along
25 * with this program; see the file COPYING; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
40 #include "bgpd/bgpd.h"
41 #include "bgpd/bgp_table.h"
42 #include "bgpd/bgp_debug.h"
43 #include "bgpd/bgp_route.h"
44 #include "bgpd/bgp_advertise.h"
45 #include "bgpd/bgp_attr.h"
46 #include "bgpd/bgp_aspath.h"
47 #include "bgpd/bgp_packet.h"
48 #include "bgpd/bgp_fsm.h"
49 #include "bgpd/bgp_mplsvpn.h"
50 #include "bgpd/bgp_updgrp.h"
51 #include "bgpd/bgp_advertise.h"
58 static inline struct bgp_adj_out
*
59 adj_lookup (struct bgp_node
*rn
, struct update_subgroup
*subgrp
,
60 u_int32_t addpath_tx_id
)
62 struct bgp_adj_out
*adj
;
71 peer
= SUBGRP_PEER (subgrp
);
72 afi
= SUBGRP_AFI (subgrp
);
73 safi
= SUBGRP_SAFI (subgrp
);
74 addpath_capable
= bgp_addpath_encode_tx (peer
, afi
, safi
);
76 /* update-groups that do not support addpath will pass 0 for
77 * addpath_tx_id so do not both matching against it */
78 for (adj
= rn
->adj_out
; adj
; adj
= adj
->next
)
80 if (adj
->subgroup
== subgrp
)
84 if (adj
->addpath_tx_id
== addpath_tx_id
)
100 adj_free (struct bgp_adj_out
*adj
)
102 TAILQ_REMOVE (&(adj
->subgroup
->adjq
), adj
, subgrp_adj_train
);
103 SUBGRP_DECR_STAT (adj
->subgroup
, adj_count
);
104 XFREE (MTYPE_BGP_ADJ_OUT
, adj
);
108 group_announce_route_walkcb (struct update_group
*updgrp
, void *arg
)
110 struct updwalk_context
*ctx
= arg
;
111 struct update_subgroup
*subgrp
;
116 struct bgp_adj_out
*adj
, *adj_next
;
119 afi
= UPDGRP_AFI (updgrp
);
120 safi
= UPDGRP_SAFI (updgrp
);
121 peer
= UPDGRP_PEER (updgrp
);
122 addpath_capable
= bgp_addpath_encode_tx (peer
, afi
, safi
);
124 UPDGRP_FOREACH_SUBGRP (updgrp
, subgrp
)
128 * Skip the subgroups that have coalesce timer running. We will
129 * walk the entire prefix table for those subgroups when the
130 * coalesce timer fires.
132 if (!subgrp
->t_coalesce
)
134 /* An update-group that uses addpath */
137 /* Look through all of the paths we have advertised for this rn and
138 * send a withdraw for the ones that are no longer present */
139 for (adj
= ctx
->rn
->adj_out
; adj
; adj
= adj_next
)
141 adj_next
= adj
->next
;
143 if (adj
->subgroup
== subgrp
)
145 for (ri
= ctx
->rn
->info
; ri
; ri
= ri
->next
)
147 if (ri
->addpath_tx_id
== adj
->addpath_tx_id
)
155 subgroup_process_announce_selected (subgrp
, NULL
, ctx
->rn
, adj
->addpath_tx_id
);
160 for (ri
= ctx
->rn
->info
; ri
; ri
= ri
->next
)
162 /* Skip the bestpath for now */
166 subgroup_process_announce_selected (subgrp
, ri
, ctx
->rn
, ri
->addpath_tx_id
);
169 /* Process the bestpath last so the "show [ip] bgp neighbor x.x.x.x advertised"
170 * output shows the attributes from the bestpath */
172 subgroup_process_announce_selected (subgrp
, ctx
->ri
, ctx
->rn
, ctx
->ri
->addpath_tx_id
);
175 /* An update-group that does not use addpath */
180 subgroup_process_announce_selected (subgrp
, ctx
->ri
, ctx
->rn
, ctx
->ri
->addpath_tx_id
);
184 /* Find the addpath_tx_id of the path we had advertised and
186 for (adj
= ctx
->rn
->adj_out
; adj
; adj
= adj_next
)
188 adj_next
= adj
->next
;
190 if (adj
->subgroup
== subgrp
)
192 subgroup_process_announce_selected (subgrp
, NULL
, ctx
->rn
, adj
->addpath_tx_id
);
200 return UPDWALK_CONTINUE
;
204 subgrp_show_adjq_vty (struct update_subgroup
*subgrp
, struct vty
*vty
,
207 struct bgp_table
*table
;
208 struct bgp_adj_out
*adj
;
209 unsigned long output_count
;
215 bgp
= SUBGRP_INST (subgrp
);
219 table
= bgp
->rib
[SUBGRP_AFI (subgrp
)][SUBGRP_SAFI (subgrp
)];
223 for (rn
= bgp_table_top (table
); rn
; rn
= bgp_route_next (rn
))
224 for (adj
= rn
->adj_out
; adj
; adj
= adj
->next
)
225 if (adj
->subgroup
== subgrp
)
230 "BGP table version is %" PRIu64
", local router ID is %s\n",
231 table
->version
,inet_ntoa(bgp
->router_id
));
232 vty_out (vty
, BGP_SHOW_SCODE_HEADER
);
233 vty_out (vty
, BGP_SHOW_OCODE_HEADER
);
238 vty_out (vty
, BGP_SHOW_HEADER
);
241 if ((flags
& UPDWALK_FLAGS_ADVQUEUE
) && adj
->adv
&& adj
->adv
->baa
)
243 route_vty_out_tmp (vty
, &rn
->p
, adj
->adv
->baa
->attr
, SUBGRP_SAFI (subgrp
), 0, NULL
);
246 if ((flags
& UPDWALK_FLAGS_ADVERTISED
) && adj
->attr
)
248 route_vty_out_tmp (vty
, &rn
->p
, adj
->attr
, SUBGRP_SAFI (subgrp
), 0, NULL
);
252 if (output_count
!= 0)
253 vty_out (vty
, "%sTotal number of prefixes %ld\n",
254 VTYNL
, output_count
);
258 updgrp_show_adj_walkcb (struct update_group
*updgrp
, void *arg
)
260 struct updwalk_context
*ctx
= arg
;
261 struct update_subgroup
*subgrp
;
265 UPDGRP_FOREACH_SUBGRP (updgrp
, subgrp
)
267 if (ctx
->subgrp_id
&& (ctx
->subgrp_id
!= subgrp
->id
))
269 vty_out (vty
, "update group %" PRIu64
", subgroup %" PRIu64
"\n", updgrp
->id
,
271 subgrp_show_adjq_vty (subgrp
, vty
, ctx
->flags
);
273 return UPDWALK_CONTINUE
;
277 updgrp_show_adj (struct bgp
*bgp
, afi_t afi
, safi_t safi
,
278 struct vty
*vty
, uint64_t id
, u_int8_t flags
)
280 struct updwalk_context ctx
;
281 memset (&ctx
, 0, sizeof (ctx
));
286 update_group_af_walk (bgp
, afi
, safi
, updgrp_show_adj_walkcb
, &ctx
);
290 subgroup_coalesce_timer (struct thread
*thread
)
292 struct update_subgroup
*subgrp
;
294 subgrp
= THREAD_ARG (thread
);
295 if (bgp_debug_update(NULL
, NULL
, subgrp
->update_group
, 0))
296 zlog_debug ("u%" PRIu64
":s%" PRIu64
" announcing routes upon coalesce timer expiry",
297 (SUBGRP_UPDGRP (subgrp
))->id
, subgrp
->id
);
298 subgrp
->t_coalesce
= NULL
;
299 subgrp
->v_coalesce
= 0;
300 subgroup_announce_route (subgrp
);
303 /* While the announce_route() may kick off the route advertisement timer for
304 * the members of the subgroup, we'd like to send the initial updates much
305 * faster (i.e., without enforcing MRAI). Also, if there were no routes to
306 * announce, this is the method currently employed to trigger the EOR.
308 if (!bgp_update_delay_active(SUBGRP_INST(subgrp
)))
313 SUBGRP_FOREACH_PEER (subgrp
, paf
)
315 peer
= PAF_PEER(paf
);
316 BGP_TIMER_OFF(peer
->t_routeadv
);
317 BGP_TIMER_ON (peer
->t_routeadv
, bgp_routeadv_timer
, 0);
325 update_group_announce_walkcb (struct update_group
*updgrp
, void *arg
)
327 struct update_subgroup
*subgrp
;
329 UPDGRP_FOREACH_SUBGRP (updgrp
, subgrp
)
331 subgroup_announce_all (subgrp
);
334 return UPDWALK_CONTINUE
;
338 update_group_announce_rrc_walkcb (struct update_group
*updgrp
, void *arg
)
340 struct update_subgroup
*subgrp
;
345 afi
= UPDGRP_AFI (updgrp
);
346 safi
= UPDGRP_SAFI (updgrp
);
347 peer
= UPDGRP_PEER (updgrp
);
349 /* Only announce if this is a group of route-reflector-clients */
350 if (CHECK_FLAG(peer
->af_flags
[afi
][safi
], PEER_FLAG_REFLECTOR_CLIENT
))
352 UPDGRP_FOREACH_SUBGRP (updgrp
, subgrp
)
354 subgroup_announce_all (subgrp
);
358 return UPDWALK_CONTINUE
;
361 /********************
363 ********************/
366 * Allocate an adj-out object. Do proper initialization of its fields,
367 * primarily its association with the subgroup and the prefix.
370 bgp_adj_out_alloc (struct update_subgroup
*subgrp
, struct bgp_node
*rn
,
371 u_int32_t addpath_tx_id
)
373 struct bgp_adj_out
*adj
;
375 adj
= XCALLOC (MTYPE_BGP_ADJ_OUT
, sizeof (struct bgp_adj_out
));
376 adj
->subgroup
= subgrp
;
379 BGP_ADJ_OUT_ADD (rn
, adj
);
384 adj
->addpath_tx_id
= addpath_tx_id
;
385 TAILQ_INSERT_TAIL (&(subgrp
->adjq
), adj
, subgrp_adj_train
);
386 SUBGRP_INCR_STAT (subgrp
, adj_count
);
391 struct bgp_advertise
*
392 bgp_advertise_clean_subgroup (struct update_subgroup
*subgrp
,
393 struct bgp_adj_out
*adj
)
395 struct bgp_advertise
*adv
;
396 struct bgp_advertise_attr
*baa
;
397 struct bgp_advertise
*next
;
398 struct bgp_advertise_fifo
*fhead
;
406 fhead
= &subgrp
->sync
->update
;
408 /* Unlink myself from advertise attribute FIFO. */
409 bgp_advertise_delete (baa
, adv
);
411 /* Fetch next advertise candidate. */
414 /* Unintern BGP advertise attribute. */
415 bgp_advertise_unintern (subgrp
->hash
, baa
);
418 fhead
= &subgrp
->sync
->withdraw
;
421 /* Unlink myself from advertisement FIFO. */
422 BGP_ADV_FIFO_DEL (fhead
, adv
);
425 bgp_advertise_free (adj
->adv
);
432 bgp_adj_out_set_subgroup (struct bgp_node
*rn
,
433 struct update_subgroup
*subgrp
,
434 struct attr
*attr
, struct bgp_info
*binfo
)
436 struct bgp_adj_out
*adj
= NULL
;
437 struct bgp_advertise
*adv
;
439 if (DISABLE_BGP_ANNOUNCE
)
442 /* Look for adjacency information. */
443 adj
= adj_lookup (rn
, subgrp
, binfo
->addpath_tx_id
);
447 adj
= bgp_adj_out_alloc (subgrp
, rn
, binfo
->addpath_tx_id
);
453 bgp_advertise_clean_subgroup (subgrp
, adj
);
454 adj
->adv
= bgp_advertise_new ();
458 assert (adv
->binfo
== NULL
);
459 adv
->binfo
= bgp_info_lock (binfo
); /* bgp_info adj_out reference */
462 adv
->baa
= bgp_advertise_intern (subgrp
->hash
, attr
);
464 adv
->baa
= baa_new ();
467 /* Add new advertisement to advertisement attribute list. */
468 bgp_advertise_add (adv
->baa
, adv
);
471 * If the update adv list is empty, trigger the member peers'
472 * mrai timers so the socket writes can happen.
474 if (BGP_ADV_FIFO_EMPTY (&subgrp
->sync
->update
))
478 SUBGRP_FOREACH_PEER (subgrp
, paf
)
480 bgp_adjust_routeadv (PAF_PEER (paf
));
484 BGP_ADV_FIFO_ADD (&subgrp
->sync
->update
, &adv
->fifo
);
486 subgrp
->version
= max (subgrp
->version
, rn
->version
);
489 /* The only time 'withdraw' will be false is if we are sending
490 * the "neighbor x.x.x.x default-originate" default and need to clear
491 * bgp_adj_out for the 0.0.0.0/0 route in the BGP table.
494 bgp_adj_out_unset_subgroup (struct bgp_node
*rn
,
495 struct update_subgroup
*subgrp
,
497 u_int32_t addpath_tx_id
)
499 struct bgp_adj_out
*adj
;
500 struct bgp_advertise
*adv
;
503 if (DISABLE_BGP_ANNOUNCE
)
506 /* Lookup existing adjacency */
507 if ((adj
= adj_lookup (rn
, subgrp
, addpath_tx_id
)) != NULL
)
509 /* Clean up previous advertisement. */
511 bgp_advertise_clean_subgroup (subgrp
, adj
);
513 if (adj
->attr
&& withdraw
)
515 /* We need advertisement structure. */
516 adj
->adv
= bgp_advertise_new ();
521 /* Note if we need to trigger a packet write */
522 if (BGP_ADV_FIFO_EMPTY (&subgrp
->sync
->withdraw
))
527 /* Add to synchronization entry for withdraw announcement. */
528 BGP_ADV_FIFO_ADD (&subgrp
->sync
->withdraw
, &adv
->fifo
);
530 /* Schedule packet write, if FIFO is getting its first entry. */
532 subgroup_trigger_write(subgrp
);
536 /* Remove myself from adjacency. */
537 BGP_ADJ_OUT_DEL (rn
, adj
);
539 /* Free allocated information. */
542 bgp_unlock_node (rn
);
546 subgrp
->version
= max (subgrp
->version
, rn
->version
);
550 bgp_adj_out_remove_subgroup (struct bgp_node
*rn
, struct bgp_adj_out
*adj
,
551 struct update_subgroup
*subgrp
)
554 bgp_attr_unintern (&adj
->attr
);
557 bgp_advertise_clean_subgroup (subgrp
, adj
);
559 BGP_ADJ_OUT_DEL (rn
, adj
);
564 * Go through all the routes and clean up the adj/adv structures corresponding
568 subgroup_clear_table (struct update_subgroup
*subgrp
)
570 struct bgp_adj_out
*aout
, *taout
;
572 SUBGRP_FOREACH_ADJ_SAFE (subgrp
, aout
, taout
)
574 struct bgp_node
*rn
= aout
->rn
;
575 bgp_adj_out_remove_subgroup (rn
, aout
, subgrp
);
576 bgp_unlock_node (rn
);
581 * subgroup_announce_table
584 subgroup_announce_table (struct update_subgroup
*subgrp
,
585 struct bgp_table
*table
)
590 struct attr_extra extra
;
596 peer
= SUBGRP_PEER (subgrp
);
597 afi
= SUBGRP_AFI (subgrp
);
598 safi
= SUBGRP_SAFI (subgrp
);
599 addpath_capable
= bgp_addpath_encode_tx (peer
, afi
, safi
);
601 if (safi
== SAFI_LABELED_UNICAST
)
605 table
= peer
->bgp
->rib
[afi
][safi
];
607 if (safi
!= SAFI_MPLS_VPN
608 && safi
!= SAFI_ENCAP
610 && CHECK_FLAG (peer
->af_flags
[afi
][safi
], PEER_FLAG_DEFAULT_ORIGINATE
))
611 subgroup_default_originate (subgrp
, 0);
613 /* It's initialized in bgp_announce_check() */
616 for (rn
= bgp_table_top (table
); rn
; rn
= bgp_route_next (rn
))
617 for (ri
= rn
->info
; ri
; ri
= ri
->next
)
619 if (CHECK_FLAG (ri
->flags
, BGP_INFO_SELECTED
) ||
620 (addpath_capable
&& bgp_addpath_tx_path(peer
, afi
, safi
, ri
)))
622 if (subgroup_announce_check (rn
, ri
, subgrp
, &rn
->p
, &attr
))
623 bgp_adj_out_set_subgroup (rn
, subgrp
, &attr
, ri
);
625 bgp_adj_out_unset_subgroup (rn
, subgrp
, 1, ri
->addpath_tx_id
);
629 * We walked through the whole table -- make sure our version number
630 * is consistent with the one on the table. This should allow
631 * subgroups to merge sooner if a peer comes up when the route node
632 * with the largest version is no longer in the table. This also
633 * covers the pathological case where all routes in the table have
636 subgrp
->version
= max (subgrp
->version
, table
->version
);
639 * Start a task to merge the subgroup if necessary.
641 update_subgroup_trigger_merge_check (subgrp
, 0);
645 * subgroup_announce_route
647 * Refresh all routes out to a subgroup.
650 subgroup_announce_route (struct update_subgroup
*subgrp
)
653 struct bgp_table
*table
;
654 struct peer
*onlypeer
;
656 if (update_subgroup_needs_refresh (subgrp
))
658 update_subgroup_set_needs_refresh (subgrp
, 0);
662 * First update is deferred until ORF or ROUTE-REFRESH is received
664 onlypeer
= ((SUBGRP_PCOUNT (subgrp
) == 1) ?
665 (SUBGRP_PFIRST (subgrp
))->peer
: NULL
);
667 CHECK_FLAG (onlypeer
->
668 af_sflags
[SUBGRP_AFI (subgrp
)][SUBGRP_SAFI (subgrp
)],
669 PEER_STATUS_ORF_WAIT_REFRESH
))
672 if (SUBGRP_SAFI (subgrp
) != SAFI_MPLS_VPN
&&
673 SUBGRP_SAFI (subgrp
) != SAFI_ENCAP
&&
674 SUBGRP_SAFI (subgrp
) != SAFI_EVPN
)
675 subgroup_announce_table (subgrp
, NULL
);
677 for (rn
= bgp_table_top (update_subgroup_rib (subgrp
)); rn
;
678 rn
= bgp_route_next (rn
))
679 if ((table
= (rn
->info
)) != NULL
)
680 subgroup_announce_table (subgrp
, table
);
684 subgroup_default_originate (struct update_subgroup
*subgrp
, int withdraw
)
688 struct aspath
*aspath
;
694 int ret
= RMAP_DENYMATCH
;
701 peer
= SUBGRP_PEER (subgrp
);
702 afi
= SUBGRP_AFI (subgrp
);
703 safi
= SUBGRP_SAFI (subgrp
);
705 if (!(afi
== AFI_IP
|| afi
== AFI_IP6
))
709 from
= bgp
->peer_self
;
711 bgp_attr_default_set (&attr
, BGP_ORIGIN_IGP
);
712 aspath
= attr
.aspath
;
713 attr
.local_pref
= bgp
->default_local_pref
;
716 str2prefix ("0.0.0.0/0", &p
);
717 else if (afi
== AFI_IP6
)
719 struct attr_extra
*ae
= attr
.extra
;
721 str2prefix ("::/0", &p
);
723 /* IPv6 global nexthop must be included. */
724 ae
->mp_nexthop_len
= BGP_ATTR_NHLEN_IPV6_GLOBAL
;
726 /* If the peer is on shared nextwork and we have link-local
728 if (peer
->shared_network
729 && !IN6_IS_ADDR_UNSPECIFIED (&peer
->nexthop
.v6_local
))
730 ae
->mp_nexthop_len
= BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL
;
733 if (peer
->default_rmap
[afi
][safi
].name
)
735 SET_FLAG (bgp
->peer_self
->rmap_type
, PEER_RMAP_TYPE_DEFAULT
);
736 for (rn
= bgp_table_top (bgp
->rib
[afi
][safi
]); rn
;
737 rn
= bgp_route_next (rn
))
739 for (ri
= rn
->info
; ri
; ri
= ri
->next
)
741 struct attr dummy_attr
;
742 struct attr_extra dummy_extra
;
743 struct bgp_info info
;
745 /* Provide dummy so the route-map can't modify the attributes */
746 dummy_attr
.extra
= &dummy_extra
;
747 bgp_attr_dup (&dummy_attr
, ri
->attr
);
748 info
.peer
= ri
->peer
;
749 info
.attr
= &dummy_attr
;
752 route_map_apply (peer
->default_rmap
[afi
][safi
].map
, &rn
->p
,
755 /* The route map might have set attributes. If we don't flush them
756 * here, they will be leaked. */
757 bgp_attr_flush (&dummy_attr
);
758 if (ret
!= RMAP_DENYMATCH
)
761 if (ret
!= RMAP_DENYMATCH
)
764 bgp
->peer_self
->rmap_type
= 0;
766 if (ret
== RMAP_DENYMATCH
)
772 if (CHECK_FLAG (subgrp
->sflags
, SUBGRP_STATUS_DEFAULT_ORIGINATE
))
773 subgroup_default_withdraw_packet (subgrp
);
774 UNSET_FLAG (subgrp
->sflags
, SUBGRP_STATUS_DEFAULT_ORIGINATE
);
778 if (!CHECK_FLAG (subgrp
->sflags
, SUBGRP_STATUS_DEFAULT_ORIGINATE
))
780 SET_FLAG (subgrp
->sflags
, SUBGRP_STATUS_DEFAULT_ORIGINATE
);
781 subgroup_default_update_packet (subgrp
, &attr
, from
);
783 /* The 'neighbor x.x.x.x default-originate' default will act as an
784 * implicit withdraw for any previous UPDATEs sent for 0.0.0.0/0 so
785 * clear adj_out for the 0.0.0.0/0 prefix in the BGP table.
788 str2prefix ("0.0.0.0/0", &p
);
790 str2prefix ("::/0", &p
);
792 rn
= bgp_afi_node_get (bgp
->rib
[afi
][safi
], afi
, safi
, &p
, NULL
);
793 bgp_adj_out_unset_subgroup (rn
, subgrp
, 0, BGP_ADDPATH_TX_ID_FOR_DEFAULT_ORIGINATE
);
797 bgp_attr_extra_free (&attr
);
798 aspath_unintern (&aspath
);
802 * Announce the BGP table to a subgroup.
804 * At startup, we try to optimize route announcement by coalescing the
805 * peer-up events. This is done only the first time - from then on,
806 * subgrp->v_coalesce will be set to zero and the normal logic
810 subgroup_announce_all (struct update_subgroup
*subgrp
)
816 * If coalesce timer value is not set, announce routes immediately.
818 if (!subgrp
->v_coalesce
)
820 if (bgp_debug_update(NULL
, NULL
, subgrp
->update_group
, 0))
821 zlog_debug ("u%" PRIu64
":s%" PRIu64
" announcing all routes",
822 subgrp
->update_group
->id
, subgrp
->id
);
823 subgroup_announce_route (subgrp
);
828 * We should wait for the coalesce timer. Arm the timer if not done.
830 if (!subgrp
->t_coalesce
)
832 thread_add_timer_msec(bm
->master
, subgroup_coalesce_timer
, subgrp
,
833 subgrp
->v_coalesce
, &subgrp
->t_coalesce
);
838 * Go through all update subgroups and set up the adv queue for the
842 group_announce_route (struct bgp
*bgp
, afi_t afi
, safi_t safi
,
843 struct bgp_node
*rn
, struct bgp_info
*ri
)
845 struct updwalk_context ctx
;
848 update_group_af_walk (bgp
, afi
, safi
, group_announce_route_walkcb
, &ctx
);
852 update_group_show_adj_queue (struct bgp
*bgp
, afi_t afi
, safi_t safi
,
853 struct vty
*vty
, uint64_t id
)
855 updgrp_show_adj (bgp
, afi
, safi
, vty
, id
, UPDWALK_FLAGS_ADVQUEUE
);
859 update_group_show_advertised (struct bgp
*bgp
, afi_t afi
, safi_t safi
,
860 struct vty
*vty
, uint64_t id
)
862 updgrp_show_adj (bgp
, afi
, safi
, vty
, id
, UPDWALK_FLAGS_ADVERTISED
);
866 update_group_announce (struct bgp
*bgp
)
868 update_group_walk (bgp
, update_group_announce_walkcb
, NULL
);
872 update_group_announce_rrclients (struct bgp
*bgp
)
874 update_group_walk (bgp
, update_group_announce_rrc_walkcb
, NULL
);