]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix display of timers when only 1 is changed
authorQuentin Young <qlyoung@nvidia.com>
Fri, 14 May 2021 18:59:16 +0000 (14:59 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Fri, 14 May 2021 18:59:16 +0000 (14:59 -0400)
When only one of the keepalive or hold timers is changed from the
default, bgp won't print the timers command in the config.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
bgpd/bgp_vty.c

index 5b5f166e4be65859759addf2fa249d698a373c12..4809e24443435492c24b3db08f5a9594d04cf388 100644 (file)
@@ -17754,7 +17754,7 @@ int bgp_config_write(struct vty *vty)
 
                /* BGP timers configuration. */
                if (bgp->default_keepalive != SAVE_BGP_KEEPALIVE
-                   && bgp->default_holdtime != SAVE_BGP_HOLDTIME)
+                   || bgp->default_holdtime != SAVE_BGP_HOLDTIME)
                        vty_out(vty, " timers bgp %u %u\n",
                                bgp->default_keepalive, bgp->default_holdtime);