]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: do not create default ospf instance
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 20 Jun 2019 08:06:48 +0000 (10:06 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Aug 2019 13:08:50 +0000 (15:08 +0200)
when an other name is given to default vrf, then there is case where 2
ospf instances are created, which is not wished. Also, it appears that
interface learning and ospf interface configuration is not lost when not
creating that default ospf instance. So removing it.

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

index 36bb8d49b595caefd3c4c3af2fbad29482a7a0c2..bee7bbb21d02de10a4de2b09732534a3c33ab016 100644 (file)
@@ -216,16 +216,6 @@ int main(int argc, char **argv)
        /* OSPF errors init */
        ospf_error_init();
 
-       /* Need to initialize the default ospf structure, so the interface mode
-          commands can be duly processed if they are received before 'router
-          ospf',
-          when quagga(ospfd) is restarted */
-       if (!ospf_get_instance(instance)) {
-               flog_err(EC_OSPF_INIT_FAIL, "OSPF instance init failed: %s",
-                        strerror(errno));
-               exit(1);
-       }
-
        frr_config_fork();
        frr_run(master);