From: Donald Sharp Date: Fri, 18 Sep 2020 00:13:44 +0000 (-0400) Subject: lib: Actually call nexthop_group_disable_vrf X-Git-Tag: base_7.6~546^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0cbee799d526fbe0692822d97d7ec227f30ab962;p=mirror%2Ffrr.git lib: Actually call nexthop_group_disable_vrf When the nexthop-groups were added to FRR for some reason the call to nexthop_group_disable_vrf was not added although it was written. Add it in. Signed-off-by: Donald Sharp --- diff --git a/lib/vrf.c b/lib/vrf.c index 2a3ce2a315..825e54baeb 100644 --- a/lib/vrf.c +++ b/lib/vrf.c @@ -317,6 +317,14 @@ void vrf_disable(struct vrf *vrf) /* Till now, nothing to be done for the default VRF. */ // Pending: see why this statement. + + /* + * When the vrf is disabled let's + * handle all nexthop-groups associated + * with this vrf + */ + nexthop_group_disable_vrf(vrf); + if (vrf_master.vrf_disable_hook) (*vrf_master.vrf_disable_hook)(vrf); }