[node] also try ipv6ll in bgp-config + reformat
[frontend] don't show enh v6 on
This commit is contained in:
parent
f01559844d
commit
41e2290365
4 changed files with 9 additions and 6 deletions
|
@ -16,19 +16,21 @@ protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering["ASN"][-4:]}} from d
|
|||
#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%};
|
||||
extended next hop off;
|
||||
};
|
||||
};
|
||||
{% elif peering["bgp_mp"] == False %}
|
||||
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering['ASN'][-4:]}}_4 from dnpeers {
|
||||
neighbor {{peering["ipv4"]}} as {{peering["ASN"]}};
|
||||
interface {% if peering['ASN'].__len__() >=6 %}"dn42_{{peering['ASN'][-6:]}}"{% else %}"dn42_{{peering['asn']}}"{% endif %};
|
||||
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"]}};
|
||||
neighbor {% peering["ipv6"] != None %}{{peering["ipv6"]}}{% else %}{{peering["ipv6ll"]}}{% endif %} as {{peering["ASN"]}};
|
||||
interface {% if peering['ASN'].__len__() >=6 %}"dn42_{{peering['ASN'][-6:]}}"{% else %}"dn42_{{peering['asn']}}"{% endif %};
|
||||
passive off;
|
||||
#import where dn42_import_filter(x,y,z);
|
||||
#export where dn42_export_filter(x,y,z);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue