forked from ansible_roles/dn42
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
425 B
Django/Jinja
12 lines
425 B
Django/Jinja
{% if peer.v4 is defined and not peer.bgp4o6 | default('false') %}
|
|
protocol bgp {{ peer.name }} from dnpeers {
|
|
neighbor {{ peer.v4 }} as {{ peer.as }};
|
|
};
|
|
{% endif %}
|
|
|
|
{% if peer.v6 is defined %}
|
|
protocol bgp {{ peer.name }}_v6 from dnpeers {
|
|
# if you use link-local ipv6 addresses for peering using the following
|
|
neighbor {{ peer.v6 }}%{{ peer.if.name | default('dn42_' + peer.name) }} as {{ peer.as }};
|
|
};
|
|
{% endif %} |