]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Actually call nexthop_group_disable_vrf
authorDonald Sharp <sharpd@nvidia.com>
Fri, 18 Sep 2020 00:13:44 +0000 (20:13 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 18 Sep 2020 00:13:44 +0000 (20:13 -0400)
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 <sharpd@nvidia.com>
lib/vrf.c

index 2a3ce2a31515c802822228dbc6be8294988eadf4..825e54baeb1c894775ca8b3f6f0b0a1d55a77eaa 100644 (file)
--- 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);
 }