Skip to content

Commit

Permalink
Merge pull request #2870 from AnuradhaKaruppiah/bgp-default-del
Browse files Browse the repository at this point in the history
bgpd: unregister VNI learning from zebra on default instance delete
  • Loading branch information
riw777 committed Aug 25, 2018
2 parents 3492362 + de6058a commit a86b18d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bgpd/bgpd.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3187,15 +3187,16 @@ int bgp_delete(struct bgp *bgp)
.import_redirect_rtlist); .import_redirect_rtlist);
bgp->vpn_policy[afi].import_redirect_rtlist = NULL; bgp->vpn_policy[afi].import_redirect_rtlist = NULL;
} }
/* Remove visibility via the master list - there may however still be
* routes to be processed still referencing the struct bgp.
*/
listnode_delete(bm->bgp, bgp);


/* Deregister from Zebra, if needed */ /* Deregister from Zebra, if needed */
if (IS_BGP_INST_KNOWN_TO_ZEBRA(bgp)) if (IS_BGP_INST_KNOWN_TO_ZEBRA(bgp))
bgp_zebra_instance_deregister(bgp); bgp_zebra_instance_deregister(bgp);


/* Remove visibility via the master list - there may however still be
* routes to be processed still referencing the struct bgp.
*/
listnode_delete(bm->bgp, bgp);

/* Free interfaces in this instance. */ /* Free interfaces in this instance. */
bgp_if_finish(bgp); bgp_if_finish(bgp);


Expand Down

0 comments on commit a86b18d

Please sign in to comment.