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 %}
network {{host_loopback_IP}}/32
{% endif %}
{% if bgp_redistribute_connected is defined and bgp_redistribute_connected == True %}
redistribute connected
{% if networks_to_announce_ipv4 is defined and networks_to_announce_ipv4 != [] %}
{% for item in networks_to_announce_ipv4 %}
network {{item}}
{% endfor %}
{% endif %}
{% if autobgp_interfaces is defined and autobgp_interfaces != [] %}
neighbor fabric activate