-
Notifications
You must be signed in to change notification settings - Fork 0
/
br-lft-act.yaml
53 lines (42 loc) · 1.29 KB
/
br-lft-act.yaml
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
bridges:
vpnham-dev-lft:
role: active
bridge_interface: eth0
peer_cidr: 10.1.0.0/16
status_addr: 10.0.0.2:8080
partner_url: http://10.0.0.3:8080/
partner_polling_interface: eth0
probe_interval: 1s
probe_location: left/active
tunnel_interfaces:
eth1:
role: active
addr: 192.168.255.2:3003
probe_addr: 192.168.255.3:3003
threshold_down: 5
threshold_up: 3
eth2:
role: standby
addr: 192.168.255.18:3003
probe_addr: 192.168.255.19:3003
threshold_down: 7
threshold_up: 5
reconcile:
scripts_timeout: 5s
bridge_activate:
reapply:
initial_delay: 1s
maximum_delay: 3600s
script:
- ["sh", "-c", "echo ${proto} ${bridge_interface} ${bridge_interface_ip} ${bridge_peer_cidr}"]
interface_activate:
reapply:
initial_delay: 1s
maximum_delay: 3600s
script:
- ["/bin/sh", "-c", "for cidr in ${bridge_peer_cidrs_ipv4}; do ip -4 route replace $cidr dev ${tunnel_interface}; done"]
interface_deactivate:
script:
- ["/bin/sh", "-c", "for cidr in ${bridge_peer_cidrs_ipv4}; do ip -4 route del $cidr dev ${tunnel_interface}; done"]
metrics:
listen_addr: 0.0.0.0:8000