Added bgp_redistribute_connected conditrional

This commit is contained in:
Cory Hawkless 2020-11-07 23:00:19 +10:30
parent 97bf6b7ffd
commit 5fee46f5b0
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ router bgp {{host_ASN}}
{% if host_loopback_IP is defined %} {% if host_loopback_IP is defined %}
network {{host_loopback_IP}}/32 network {{host_loopback_IP}}/32
{% endif %} {% endif %}
{% if bgp_redistribute_connected is defined and bgp_redistribute_connected == True %}
redistribute connected
{% endif %}
{% if autobgp_interfaces is defined and autobgp_interfaces != [] %} {% if autobgp_interfaces is defined and autobgp_interfaces != [] %}
neighbor fabric activate neighbor fabric activate
neighbor fabric prefix-list AS{{host_ASN}}-OUT out neighbor fabric prefix-list AS{{host_ASN}}-OUT out