|
|
@ -1,10 +1,10 @@
|
|
|
|
{% if peer.v4 is defined%}
|
|
|
|
{% if peer.v4 is defined and not peer.bgp4o6 | default('false') %}
|
|
|
|
protocol bgp {{ peer.name }} from dnpeers {
|
|
|
|
protocol bgp {{ peer.name }} from dnpeers {
|
|
|
|
neighbor {{ peer.v4 }} as {{ peer.as }};
|
|
|
|
neighbor {{ peer.v4 }} as {{ peer.as }};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if peer.v6 is defined%}
|
|
|
|
{% if peer.v6 is defined %}
|
|
|
|
protocol bgp {{ peer.name }}_v6 from dnpeers {
|
|
|
|
protocol bgp {{ peer.name }}_v6 from dnpeers {
|
|
|
|
# if you use link-local ipv6 addresses for peering using the following
|
|
|
|
# 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 }};
|
|
|
|
neighbor {{ peer.v6 }}%{{ peer.if.name | default('dn42_' + peer.name) }} as {{ peer.as }};
|
|
|
|