char pfx_buf[PREFIX2STR_BUFFER];
int debug = 0;
+ if (bgp_flag_check(bgp, BGP_FLAG_DELETE_IN_PROGRESS)) {
+ if (rn)
+ debug = bgp_debug_bestpath(&rn->p);
+ if (debug) {
+ prefix2str(&rn->p, pfx_buf, sizeof(pfx_buf));
+ zlog_debug(
+ "%s: bgp delete in progress, ignoring event, p=%s",
+ __func__, pfx_buf);
+ }
+ return;
+ }
/* Is it end of initial update? (after startup) */
if (!rn) {
quagga_timestamp(3, bgp->update_delay_zebra_resume_time,
struct rfapi_monitor_vpn *moved;
afi_t afi;
+ if (bgp == NULL) {
+ vnc_zlog_debug_verbose(
+ "%s: NULL BGP pointer, assume shutdown race condition!!!",
+ __func__);
+ return 0;
+ }
+ if (bgp_flag_check(bgp, BGP_FLAG_DELETE_IN_PROGRESS)) {
+ vnc_zlog_debug_verbose(
+ "%s: BGP delete in progress, assume shutdown race condition!!!",
+ __func__);
+ return 0;
+ }
assert(wcb->node);
assert(bpi);
assert(wcb->import_table);