Merged networks_to_announce_ipv4 and bgp_redistribute_connected

This commit is contained in:
Cory Hawkless 2020-11-07 23:02:24 +10:30
commit 8cbad89ae0
1 changed files with 6 additions and 4 deletions

View File

@ -47,8 +47,10 @@ 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 %} {% if networks_to_announce_ipv4 is defined and networks_to_announce_ipv4 != [] %}
redistribute connected {% for item in networks_to_announce_ipv4 %}
network {{item}}
{% endfor %}
{% endif %} {% endif %}
{% if autobgp_interfaces is defined and autobgp_interfaces != [] %} {% if autobgp_interfaces is defined and autobgp_interfaces != [] %}
neighbor fabric activate neighbor fabric activate