Skip to content

Commit d098c76

Browse files
authored
Update ndfc_vrf_lite_ebgp.j2 (#392)
fix bgp graceful restart
1 parent 6c15365 commit d098c76

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

roles/dtc/common/templates/ndfc_vrf_lite/ndfc_vrf_lite_ebgp.j2

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ router bgp {{ MD_Extended.vxlan.global.bgp_asn }}
2121
{% elif switch_item.bgp.best_path_as_path_relax is not defined and (item.bgp.best_path_as_path_relax | default(defaults.vxlan.overlay_extensions.vrf_lites.bgp.best_path_as_path_relax)) %}
2222
bestpath as-path multipath-relax
2323
{% endif %}
24-
{# Need to talk about this one #}
25-
{% if switch_item.bgp.graceful_restart %}
26-
graceful-restart
27-
{% elif switch_item.bgp.graceful_restart is not defined and (item.bgp.graceful_restart | default(defaults.vxlan.overlay_extensions.vrf_lites.bgp.graceful_restart)) %}
28-
graceful-restart
24+
{% if (switch_item.bgp.graceful_restart is defined and switch_item.bgp.graceful_restart == false) or (item.bgp.graceful_restart is defined and item.bgp.graceful_restart == false) %}
25+
no graceful-restart
2926
{% endif %}
3027
{% if switch_item.bgp.graceful_restart_helper %}
3128
graceful-restart-helper

0 commit comments

Comments
 (0)