forked from abckey/frr-talos-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrr.conf.j2
60 lines (57 loc) · 1.34 KB
/
frr.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{%- for n in ports %}
interface {{n}}
ipv6 nd ra-interval 10
no ipv6 nd suppress-ra
!
{%- endfor %}
router bgp {{ASN_METALLB_LOCAL}} vrf {{NAMESPACE_METALLB}}
bgp router-id {{NODE_IP}}
no bgp ebgp-requires-policy
neighbor METALLB peer-group
neighbor METALLB remote-as {{ASN_METALLB_REMOTE}}
neighbor METALLB passive
neighbor {{PEER_IP_REMOTE}} peer-group METALLB
!
address-family ipv4 unicast
neighbor METALLB route-map denymap out
exit-address-family
!
router bgp {{ASN_LOCAL}}
bgp router-id {{NODE_IP}}
no bgp ebgp-requires-policy
bgp bestpath as-path multipath-relax
neighbor FABRIC peer-group
neighbor FABRIC remote-as external
neighbor FABRIC bfd
neighbor FABRIC timers 1 3
{%- for n in ports %}
neighbor {{n}} interface{% if PEER_V6ONLY|lower == "yes" %} v6only{% endif %} peer-group FABRIC
{%- endfor %}
!
address-family ipv4 unicast
redistribute connected route-map loopbacks
import vrf {{NAMESPACE_METALLB}}
exit-address-family
!
ip prefix-list denyall seq 10 deny 0.0.0.0/0
!
route-map denymap permit 1
match ip address prefix-list denyall
!
route-map SETSRC permit 10
set src {{NODE_IP}}
!
route-map loopbacks permit 10
match interface lo
!
route-map loopbacks permit 20
match interface dummy0
!
route-map loopbacks permit 30
match interface dummy1
!
ip protocol bgp route-map SETSRC
!
line vty
!
log syslog debugging