19 lines
546 B
Django/Jinja
19 lines
546 B
Django/Jinja
protocol bgp dn42_{{ item['remotename'] }} from dnpeers {
|
|
neighbor {{ item['remote_llv6'] }} % {% if item.ifacename is defined %}{{ item.ifacename }}{% else %}'dn42{{ item['remotename'] }}'{% endif %} as {{ item['asn'] }};
|
|
{% if item.extmsg|default(true) %}
|
|
enable extended messages on;
|
|
{% endif %}
|
|
{% if item.hostadv|default(true) %}
|
|
advertise hostname on;
|
|
{% endif %}
|
|
{% if item['needs_v4']|default(true) %}
|
|
{% if item['enh']|default(true) %}
|
|
ipv4 {
|
|
extended next hop on;
|
|
};
|
|
{% endif %}
|
|
ipv6 {
|
|
extended next hop on;
|
|
};
|
|
{% endif %}
|
|
}
|