summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
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 b493f832f3..db539d375d 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -34,6 +34,7 @@
#include "command.h"
#include "ns.h"
#include "privs.h"
+#include "nexthop_group.h"
/* default VRF ID value used when VRF backend is not NETNS */
#define VRF_DEFAULT_INTERNAL 0
@@ -269,6 +270,13 @@ int vrf_enable(struct vrf *vrf)
if (vrf_master.vrf_enable_hook)
(*vrf_master.vrf_enable_hook)(vrf);
+ /*
+ * If we have any nexthop group entries that
+ * are awaiting vrf initialization then
+ * let's let people know about it
+ */
+ nexthop_group_enable_vrf(vrf);
+
return 1;
}