allow multiple peerings per mntner and node (not per ASN)
This commit is contained in:
parent
c17ddf1a03
commit
0f1cbb3a11
3 changed files with 24 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
|||
{% if peering["bgp_mp"] %}
|
||||
protocol bgp dn42_{{peering["MNT"][:-4].lower()}} from dnpeers {
|
||||
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering["ASN"][-4:]}} from dnpeers {
|
||||
neighbor {{peering["ipv6ll"]}} as {{peering["ASN"]}};
|
||||
interface "dn42_{{peering['MNT'][:-4].lower()}}";
|
||||
interface "dn42_{{peering['MNT'][:-4].lower()}}_{{peering['ASN'][-4:]}}";
|
||||
passive off;
|
||||
|
||||
ipv4 {
|
||||
|
@ -20,14 +20,14 @@ protocol bgp dn42_{{peering["MNT"][:-4].lower()}} from dnpeers {
|
|||
};
|
||||
};
|
||||
{%else%}
|
||||
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_4 from dnpeers {
|
||||
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()}}_6 from dnpeers {
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue