]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: update ospf default vrf name with vrf hook
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 20 Jun 2019 08:10:41 +0000 (10:10 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Aug 2019 13:08:50 +0000 (15:08 +0200)
vrf hook handler associated to updating the vrf default name is added.
Then, when creating default ospf vrf instance, the vrf identifier will
be associated to the correct default vrf name.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
ospfd/ospfd.c

index b91a55f6351049ea467be0e0231758358e1dc0e1..8f91f84a417e6b556c2f52038b17d53f31d49c2a 100644 (file)
@@ -2158,7 +2158,7 @@ static int ospf_vrf_disable(struct vrf *vrf)
 void ospf_vrf_init(void)
 {
        vrf_init(ospf_vrf_new, ospf_vrf_enable, ospf_vrf_disable,
-                ospf_vrf_delete, NULL);
+                ospf_vrf_delete, ospf_vrf_enable);
 }
 
 void ospf_vrf_terminate(void)