File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3939,13 +3939,15 @@ int bgp_delete(struct bgp *bgp)
3939
3939
struct bgp_dest * dest_next = NULL;
3940
3940
struct bgp_table * dest_table = NULL;
3941
3941
struct graceful_restart_info * gr_info ;
3942
+ uint32_t cnt_before , cnt_after ;
3942
3943
3943
3944
assert (bgp );
3944
3945
3945
3946
/*
3946
3947
* Iterate the pending dest list and remove all the dest pertaininig to
3947
3948
* the bgp under delete.
3948
3949
*/
3950
+ cnt_before = zebra_announce_count (& bm -> zebra_announce_head );
3949
3951
for (dest = zebra_announce_first (& bm -> zebra_announce_head ); dest ;
3950
3952
dest = dest_next ) {
3951
3953
dest_next = zebra_announce_next (& bm -> zebra_announce_head , dest );
@@ -3957,6 +3959,11 @@ int bgp_delete(struct bgp *bgp)
3957
3959
}
3958
3960
}
3959
3961
3962
+ cnt_after = zebra_announce_count (& bm -> zebra_announce_head );
3963
+ if (BGP_DEBUG (zebra , ZEBRA ))
3964
+ zlog_debug ("Zebra Announce Fifo cleanup count before %u and after %u during BGP %s deletion" ,
3965
+ cnt_before , cnt_after , bgp -> name_pretty );
3966
+
3960
3967
bgp_soft_reconfig_table_task_cancel (bgp , NULL , NULL );
3961
3968
3962
3969
/* make sure we withdraw any exported routes */
You can’t perform that action at this time.
0 commit comments