Conditional on the prefix filter

This commit is contained in:
Cory Hawkless 2020-08-21 21:53:12 +09:30
parent 431b6b1f94
commit 97bf6b7ffd
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ router bgp {{host_ASN}}
advertise-default-gw
exit-address-family
!
ip prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP}}/32
{% if host_loopback_IP is defined %}ip prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP}}/32{% endif %}
!
ipv6 prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP_v6}}/128
{% if host_loopback_IP_v6 is defined %}ipv6 prefix-list AS{{host_ASN}}-OUT seq 5 permit {{host_loopback_IP_v6}}/128{% endif %}
line vty
!