support non-multiprotocol bgp, put tbspace peering in git

This commit is contained in:
h 2025-01-20 10:49:11 -08:00
parent 61ed660df9
commit 4fb9e0d324
Signed by: 9pfs
SSH key fingerprint: SHA256:jgJ8oy3dFgbNXEiRdZlbUhItY8fbh4UvvJ2qhxoOC88
2 changed files with 36 additions and 1 deletions

View file

@ -1,3 +1,4 @@
{% if item.mp|default(true) %}
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) %}
@ -17,3 +18,27 @@ protocol bgp dn42_{{ item['remotename'] }} from dnpeers {
};
{% endif %}
}
{% else %}
{% if item.needs_v4|default(true) %}
protocol bgp dn42_{{ item['remotename'] }}_v4 from dnpeers {
neighbor {{ item['remote_unicastv4'] }} % {% 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 %}
}
{% endif %}
{% if item.needs_v6|default(true) %}
protocol bgp dn42_{{ item['remotename'] }}_v6 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 %}
}
{% endif %}
{% endif %}

View file

@ -186,3 +186,13 @@ peers:
remoteport: 22002
publickey: DkmSBCIgrxPPZmT07DraoCSD/jSByjPkYqHJWfVZ5hM=
remote_llv6: fe80::2547
- remotename: tbspace
remotehost: dn42.tbspace.de
remoteip: 138.201.47.80
remoteport: 49142
publickey: kHDnZloOCvXvBys6kcEZ/sAu/DRNDD8mANDARAL3TlE=
remote_llv6: fe80::1299:e
enh: false
remote_unicastv4: 172.23.235.1
mp: false
asn: 76190