]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Comment out dead code for future
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 27 Jul 2020 10:54:23 +0000 (06:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 27 Jul 2020 10:54:23 +0000 (06:54 -0400)
I wanted to preserve the old code flow to see what might
be needed in the future in commit:
23ca3269da5f9d898cb54d42c560d519b9cb9915

Coverity doesn't like dead code.  So let's comment it out.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_main.c

index 33eaf9ae74985c88f7ac95dc3ab57f1fc12cfe4c..b082aa9c6abef3bf4cd54a064c75f28ecf43d876 100644 (file)
@@ -133,19 +133,20 @@ void sighup(void)
        /*
         * This is turned off for the moment.  There is all
         * sorts of config turned off by bgp_terminate
-        * that is not setup properly again in bgp_rest.
+        * that is not setup properly again in bgp_reset.
         * I see no easy way to do this nor do I see that
         * this is a desirable way to reload config
         * given the yang work.
         */
        /* Terminate all thread. */
-       bgp_terminate();
-       bgp_reset();
-       zlog_info("bgpd restarting!");
-
-       /* Reload config file. */
-       vty_read_config(NULL, bgpd_di.config_file, config_default);
+       /*
+        * bgp_terminate();
+        * bgp_reset();
+        * zlog_info("bgpd restarting!");
 
+        * Reload config file.
+        * vty_read_config(NULL, bgpd_di.config_file, config_default);
+        */
        /* Try to return to normal operation. */
 }