forked from 9pfs/dn42-ansible
support non-multiprotocol bgp, put tbspace peering in git
This commit is contained in:
parent
61ed660df9
commit
4fb9e0d324
2 changed files with 36 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{% if item.mp|default(true) %}
|
||||||
protocol bgp dn42_{{ item['remotename'] }} from dnpeers {
|
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'] }};
|
neighbor {{ item['remote_llv6'] }} % {% if item.ifacename is defined %}{{ item.ifacename }}{% else %}'dn42{{ item['remotename'] }}'{% endif %} as {{ item['asn'] }};
|
||||||
{% if item.extmsg|default(true) %}
|
{% if item.extmsg|default(true) %}
|
||||||
|
@ -17,3 +18,27 @@ protocol bgp dn42_{{ item['remotename'] }} from dnpeers {
|
||||||
};
|
};
|
||||||
{% endif %}
|
{% 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 %}
|
|
@ -185,4 +185,14 @@ peers:
|
||||||
remoteip: 107.189.12.254
|
remoteip: 107.189.12.254
|
||||||
remoteport: 22002
|
remoteport: 22002
|
||||||
publickey: DkmSBCIgrxPPZmT07DraoCSD/jSByjPkYqHJWfVZ5hM=
|
publickey: DkmSBCIgrxPPZmT07DraoCSD/jSByjPkYqHJWfVZ5hM=
|
||||||
remote_llv6: fe80::2547
|
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
|
Loading…
Reference in a new issue