]> git.puffer.fish Git - matthieu/frr.git/commitdiff
babeld: 3 more timing statements in config text
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 14 Feb 2012 11:12:03 +0000 (15:12 +0400)
committerPaul Jakma <paul@quagga.net>
Sun, 25 Mar 2012 16:06:54 +0000 (17:06 +0100)
This commit makes the following lines visible in running-config text,
when respective intervals are configured to non-default values:

* babel hello-interval
* babel update-interval
* babel resend-delay

babeld/babel_interface.c
babeld/babel_main.c
babeld/babeld.c

index 00d53bc67b1644a02f33e26c234ea434f9d6d1e0..958b1b984f7c6ed8fcc837ecd414e960307c7949 100644 (file)
@@ -986,6 +986,16 @@ interface_config_write (struct vty *vty)
                 vty_out (vty, " babel split-horizon%s", VTY_NEWLINE);
                 write++;
             }
+            if (babel_ifp->hello_interval != BABEL_DEFAULT_HELLO_INTERVAL)
+            {
+                vty_out (vty, " babel hello-interval %u%s", babel_ifp->hello_interval, VTY_NEWLINE);
+                write++;
+            }
+            if (babel_ifp->update_interval != BABEL_DEFAULT_UPDATE_INTERVAL)
+            {
+                vty_out (vty, " babel update-interval %u%s", babel_ifp->update_interval, VTY_NEWLINE);
+                write++;
+            }
         }
         vty_out (vty, "!%s", VTY_NEWLINE);
         write++;
index 0fcba749d03a194007f90b52e1d97865ba80f0c2..003d746b0f5e695e4b768bdbf1a2e45d1e271444 100644 (file)
@@ -521,7 +521,6 @@ show_babel_main_configuration (struct vty *vty)
             "vty port                = %d%s"
             "id                      = %s%s"
             "parasitic               = %s%s"
-            "resend-delay            = %d%s"
             "allow_duplicates        = %s%s"
             "kernel_metric           = %d%s",
             pidfile, VTY_NEWLINE,
@@ -536,7 +535,6 @@ show_babel_main_configuration (struct vty *vty)
             babel_vty_port, VTY_NEWLINE,
             format_eui64(myid), VTY_NEWLINE,
             format_bool(parasitic), VTY_NEWLINE,
-            resend_delay, VTY_NEWLINE,
             format_bool(allow_duplicates), VTY_NEWLINE,
             kernel_metric, VTY_NEWLINE);
 }
index 9fea2e1012511e61f25b2b104adb4dfdc7964b5b..1ae3f042c8e39e718b9e2fa9fcf5c4b0bd58913f 100644 (file)
@@ -102,6 +102,11 @@ babel_config_write (struct vty *vty)
     if (!babel_routing_process)
         return lines;
     vty_out (vty, "router babel%s", VTY_NEWLINE);
+    if (resend_delay != BABEL_DEFAULT_RESEND_DELAY)
+    {
+        vty_out (vty, " babel resend-delay %u%s", resend_delay, VTY_NEWLINE);
+        lines++;
+    }
     /* list enabled interfaces */
     lines = 1 + babel_enable_if_config_write (vty);
     /* list redistributed protocols */