Skip to content

Commit

Permalink
hold-forever
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Nov 11, 2024
1 parent 3e2a026 commit b013b07
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ 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 %}
{% else %}
{% elif router_bgp.timers.hold_forever is arista.avd.defined(true) %}
{% set timers_bgp_cli = timers_bgp_cli ~ " 0" %}
{% endif %}
{{ timers_bgp_cli }}
Expand Down

0 comments on commit b013b07

Please sign in to comment.