Skip to content
Permalink
Browse files

Merge pull request #3773 from pguibert6WIND/bgp_delete_vrfid_unknown

bgpd: if vrf is unknown, bgp deletion not complete
  • Loading branch information...
eqvinox committed Feb 12, 2019
2 parents e0196a8 + ee66b77 commit 8be328303c326ede010ea943d3765784779a7ec6
Showing with 3 additions and 1 deletion.
  1. +3 −1 bgpd/bgpd.c
@@ -7857,9 +7857,11 @@ void bgp_master_init(struct thread_master *master)
*/
static void bgp_if_finish(struct bgp *bgp)
{
struct vrf *vrf = vrf_lookup_by_id(bgp->vrf_id);
struct vrf *vrf;
struct interface *ifp;

vrf = bgp_vrf_lookup_by_instance_type(bgp);

if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW || !vrf)
return;

0 comments on commit 8be3283

Please sign in to comment.
You can’t perform that action at this time.