added networks_to_announce_ipv4 to outbound prefix filter
This commit is contained in:
parent
b4cf290c00
commit
a98693eca0
|
@ -57,4 +57,4 @@
|
|||
enabled: True
|
||||
daemon_reload: yes
|
||||
name: frr-docker.service
|
||||
tags: frr-docker
|
||||
tags: frr-docker
|
||||
|
|
|
@ -102,5 +102,11 @@ router bgp {{host_ASN}}
|
|||
exit-address-family
|
||||
!
|
||||
{% if host_loopback_IP is defined %}ip prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP}}/32{% endif %}
|
||||
{% if networks_to_announce_ipv4 is defined and networks_to_announce_ipv4 != [] %}
|
||||
{% for item in networks_to_announce_ipv4 %}
|
||||
ip prefix-list AS{{host_ASN}}-OUT seq {{loop.index+5}} permit {{item}}/32
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if host_loopback_IP_v6 is defined %}ipv6 prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP_v6}}/128{% endif %}
|
||||
|
|
Loading…
Reference in New Issue