2023-10-18 13:01:02 +00:00
|
|
|
frr defaults datacenter
|
|
|
|
service integrated-vtysh-config
|
|
|
|
log syslog
|
|
|
|
|
2024-05-18 16:35:41 +00:00
|
|
|
# we only have the default route, so allow talking to BGP peers over it
|
2023-10-18 13:01:02 +00:00
|
|
|
ip nht resolve-via-default
|
|
|
|
|
2023-11-20 11:56:34 +00:00
|
|
|
router bgp {{ asn.asn }}
|
2023-10-18 13:01:02 +00:00
|
|
|
bgp bestpath as-path multipath-relax
|
|
|
|
|
|
|
|
neighbor fabric peer-group
|
|
|
|
neighbor fabric remote-as external
|
|
|
|
neighbor fabric capability extended-nexthop
|
|
|
|
|
2024-05-18 16:35:41 +00:00
|
|
|
{% for iface in interfaces | selectattr('name', 'match', '^lan') %}
|
2023-10-18 13:01:02 +00:00
|
|
|
neighbor {{ iface.name }} interface peer-group fabric
|
|
|
|
neighbor {{ iface.name }} bfd
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
address-family ipv4 unicast
|
|
|
|
redistribute connected route-map loopback
|
|
|
|
neighbor fabric activate
|
2024-04-03 13:48:16 +00:00
|
|
|
neighbor fabric route-map local out
|
2023-10-18 13:01:02 +00:00
|
|
|
exit-address-family
|
|
|
|
|
|
|
|
address-family ipv6 unicast
|
|
|
|
redistribute connected route-map loopback
|
|
|
|
neighbor fabric activate
|
2024-04-03 13:48:16 +00:00
|
|
|
neighbor fabric route-map local out
|
2023-10-18 13:01:02 +00:00
|
|
|
exit-address-family
|
|
|
|
|
2024-08-28 10:39:51 +00:00
|
|
|
{% if cluster is defined and cluster.custom_fields and cluster.custom_fields.vlans %}
|
2023-10-18 13:01:02 +00:00
|
|
|
address-family l2vpn evpn
|
|
|
|
neighbor fabric activate
|
2024-04-03 13:48:16 +00:00
|
|
|
neighbor fabric route-map local out
|
2023-10-18 13:01:02 +00:00
|
|
|
advertise-all-vni
|
|
|
|
exit-address-family
|
2024-05-18 16:35:41 +00:00
|
|
|
{% endif %}
|
2023-10-18 13:01:02 +00:00
|
|
|
|
2024-04-03 13:48:16 +00:00
|
|
|
bgp as-path access-list local permit ^$
|
|
|
|
|
2023-10-18 13:01:02 +00:00
|
|
|
route-map loopback permit 1
|
|
|
|
match interface lo
|
2024-04-03 13:48:16 +00:00
|
|
|
|
|
|
|
route-map local permit 1
|
|
|
|
match as-path local
|