From 6512b39d47ad570d0ded0e895e2b1a496700064b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 17 Sep 2020 20:13:44 -0400 Subject: [PATCH] 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 --- lib/vrf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/vrf.c b/lib/vrf.c index 20e08b03d8..ec0c8a815f 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); } -- 2.39.5