diff --git a/python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2 b/python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2 index 3411f7cc583..59ae4393d11 100644 --- a/python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2 +++ b/python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2 @@ -30,7 +30,7 @@ router bgp {{ router_bgp.as }} no bgp default ipv4-unicast transport ipv6 {% endif %} {% if router_bgp.timers.keepalive_time is arista.avd.defined and - (router_bgp.timers.hold_time is arista.avd.defined or router_bgp.timers.hold_forever is arista.avd.defined) %} + (router_bgp.timers.hold_time is arista.avd.defined or router_bgp.timers.hold_forever is arista.avd.defined(true)) %} {% set timers_bgp_cli = "timers bgp " ~ router_bgp.timers.keepalive_time %} {% if router_bgp.timers.hold_time is arista.avd.defined %} {% set timers_bgp_cli = timers_bgp_cli ~ " " ~ router_bgp.timers.hold_time %}