-
Notifications
You must be signed in to change notification settings - Fork 0
/
br-lft-sby.yaml
45 lines (36 loc) · 1.15 KB
/
br-lft-sby.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
bridges:
vpnham-dev-lft:
role: standby
bridge_interface: eth0
peer_cidr: 10.1.0.0/16
status_addr: 10.0.0.3:8080
partner_url: http://10.0.0.2:8080/
partner_polling_interface: eth0
probe_interval: 1s
probe_location: left/standby
tunnel_interfaces:
eth1:
role: active
addr: 192.168.255.50:3003
probe_addr: 192.168.255.51:3003
threshold_down: 6
threshold_up: 5
eth2:
role: standby
addr: 192.168.255.34:3003
probe_addr: 192.168.255.35:3003
threshold_down: 4
threshold_up: 9
reconcile:
scripts_timeout: 5s
bridge_activate:
script:
- ["sh", "-c", "echo ${proto} ${bridge_interface} ${bridge_interface_ip} ${bridge_peer_cidr}"]
interface_activate:
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:8001