summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-17 20:13:44 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-09-17 20:13:44 -0400
commit0cbee799d526fbe0692822d97d7ec227f30ab962 (patch)
tree8d4e8754c889e1241890022fa7d82aa3789adca9 /lib/vrf.c
parent70d400cefa05bdd6fa64ed6fdb42d082a6a5bc25 (diff)
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c8
1 files changed, 8 insertions, 0 deletions
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);
}