diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index ad4856422e32..a3caa5a80626 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4094,7 +4094,8 @@ int bgp_delete(struct bgp *bgp) } /* unmap from RT list */ - bgp_evpn_vrf_delete(bgp); + if (!IS_BGP_INSTANCE_HIDDEN(bgp)) + bgp_evpn_vrf_delete(bgp); /* unmap bgp vrf label */ vpn_leak_zebra_vrf_label_withdraw(bgp, AFI_IP);