]> git.proxmox.com Git - mirror_frr.git/commitdiff
babeld: avoid reading the configuration file twice
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 2 Jul 2018 01:08:02 +0000 (22:08 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 13 Aug 2018 21:59:31 +0000 (18:59 -0300)
The frr_config_fork() function called by all FRR daemons during
initialization already takes care of reading the startup configuration
file.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
babeld/babel_main.c

index 9ea123c8f9e62eefce62894fee47e988dac3cd03..2b87bed0fb886b4b738473d4e84365f47749983b 100644 (file)
@@ -196,9 +196,6 @@ main(int argc, char **argv)
     /* this replace kernel_setup && kernel_setup_socket */
     babelz_zebra_init ();
 
-    /* Get zebra configuration file. */
-    vty_read_config (babeld_di.config_file, babel_config_default);
-
     /* init buffer */
     rc = resize_receive_buffer(1500);
     if(rc < 0)