Merged networks_to_announce_ipv4 and bgp_redistribute_connected
This commit is contained in:
commit
8cbad89ae0
|
@ -47,16 +47,18 @@ 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 %}
|
||||||
{% endif %}
|
network {{item}}
|
||||||
|
{% endfor %}
|
||||||
|
{% 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
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if frr_other_peers is defined and frr_other_peers != [] %}
|
{% if frr_other_peers is defined and frr_other_peers != [] %}
|
||||||
{% for item in frr_other_peers %}
|
{% for item in frr_other_peers %}
|
||||||
neighbor {{ item['ip'] }} remote-as {{ item['remote_ASN'] }} prefix-list AS{{host_ASN}}-OUT out
|
neighbor {{ item['ip'] }} remote-as {{ item['remote_ASN'] }} prefix-list AS{{host_ASN}}-OUT out
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if addressed_interfaces is defined and addressed_interfaces != [] %}
|
{% if addressed_interfaces is defined and addressed_interfaces != [] %}
|
||||||
|
|
Loading…
Reference in New Issue