- it is only 15 chars by default (change requires kernel recompile) - thanks to @famfo for have a long mntner name
36 lines
No EOL
1.3 KiB
Text
36 lines
No EOL
1.3 KiB
Text
{% if peering["bgp_mp"] %}
|
|
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering["ASN"][-4:]}} from dnpeers {
|
|
neighbor {{peering["ipv6ll"]}} as {{peering["ASN"]}};
|
|
interface {% if peering['ASN'].__len__() >=6 %}"dn42_{{peering['ASN'][-6:]}}"{% else %}"dn42_{{peering['asn']}}"{% endif %};
|
|
passive off;
|
|
|
|
ipv4 {
|
|
{# TODO: implement pinging peer for bgp-communities
|
|
#import where dn42_import_filter(x,y,z);
|
|
#export where dn42_export_filter(x,y,z);
|
|
#}
|
|
extended next hop {% if peering["bgp_enh"] %}on{%else%}off{%endif%};
|
|
};
|
|
ipv6 {
|
|
{# TODO: implement pinging peer for bgp-communities
|
|
#import where dn42_import_filter(x,y,z);
|
|
#export where dn42_export_filter(x,y,z);
|
|
#}
|
|
extended next hop {% if peering["bgp_enh"] %}on{%else%}off{%endif%};
|
|
};
|
|
};
|
|
{%else%}
|
|
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering['ASN'][-4:]}}_4 from dnpeers {
|
|
neighbor {{peering["ipv4"]}} as {{peering["ASN"]}};
|
|
passive off;
|
|
#import where dn42_import_filter(x,y,z);
|
|
#export where dn42_export_filter(x,y,z);
|
|
};
|
|
|
|
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering['ASN'][-4:]}}_6 from dnpeers {
|
|
neighbor {{peering["ipv6"]}} as {{peering["ASN"]}};
|
|
passive off;
|
|
#import where dn42_import_filter(x,y,z);
|
|
#export where dn42_export_filter(x,y,z);
|
|
}
|
|
{%endif%} |