]> git.puffer.fish Git - mirror/frr.git/commitdiff
ldpd: restore correct defaults on "no discovery ... interval"
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 25 Jul 2017 00:39:55 +0000 (21:39 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 31 Jul 2017 11:54:26 +0000 (08:54 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldp_vty_conf.c

index 09eb6a7c55c532fd5dc1cbbaf67ae0212a7f13b1..2dbc5757d3264751d2eeab05a4003f0ebc231515 100644 (file)
@@ -582,11 +582,12 @@ ldp_vty_disc_interval(struct vty *vty, int disable, const char *hello_type_str,
                if (disable) {
                        switch (hello_type) {
                        case HELLO_LINK:
-                               vty_conf->lhello_interval = LINK_DFLT_HOLDTIME;
+                               vty_conf->lhello_interval =
+                                   DEFAULT_HELLO_INTERVAL;
                                break;
                        case HELLO_TARGETED:
                                vty_conf->thello_interval =
-                                   TARGETED_DFLT_HOLDTIME;
+                                   DEFAULT_HELLO_INTERVAL;
                                break;
                        }
                } else {