[node] also try ipv6ll in bgp-config

[frontend] don't show enh v6 on
This commit is contained in:
lare 2024-04-23 17:29:23 +02:00
parent f01559844d
commit 27770ae19e
4 changed files with 7 additions and 6 deletions

View file

@ -9,7 +9,7 @@ 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;
};
ipv6 {
{# TODO: implement pinging peer for bgp-communities
@ -28,7 +28,7 @@ protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering['ASN'][-4:]}}_4 from
};
protocol bgp dn42_{{peering["MNT"][:-4].lower()}}_{{peering['ASN'][-4:]}}_6 from dnpeers {
neighbor {{peering["ipv6"]}} as {{peering["ASN"]}};
neighbor {% if "ipv6" in peering.keys() %}{{peering["ipv6"]}}{% else %}{{peering["ipv6ll"]}}{% endif %} as {{peering["ASN"]}};
passive off;
#import where dn42_import_filter(x,y,z);
#export where dn42_export_filter(x,y,z);