summaryrefslogtreecommitdiff
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-06-20 10:06:48 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-08-27 15:08:50 +0200
commit44ad6e4127ee50fc2a14804159b062ac1910723f (patch)
tree0f4e27fa5ea4561dbd2ed28b9bdf9d2af94db698 /ospfd/ospf_main.c
parentd5f31d5f82ae2a2744a18d1bc7513fe3902411eb (diff)
ospfd: do not create default ospf instance
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>
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 36bb8d49b5..bee7bbb21d 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -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);