]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: reset interface configuration when it's disabled
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 29 Sep 2016 17:52:32 +0000 (14:52 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Oct 2016 13:09:52 +0000 (09:09 -0400)
This is necessary to prevent the same old configuration to come back
when the interface is reactivated later for a given address-family.

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

index a3e1b9a2500debabf44a48aae955f95af3091f8c..1cc9bea9dda2fab6520891b51cb21391fe1f84dc 100644 (file)
@@ -833,6 +833,8 @@ ldp_vty_interface(struct vty *vty, struct vty_arg *args[])
                        goto cancel;
 
                ia->enabled = 0;
+               ia->hello_holdtime = 0;
+               ia->hello_interval = 0;
                ldp_reload(vty_conf);
                return (CMD_SUCCESS);
        }