-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbr-rgt-act.yaml
45 lines (35 loc) · 1.06 KB
/
br-rgt-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
bridges:
vpnham-dev-rgt:
role: active
bridge_interface: eth0
peer_cidr: 10.0.0.0/16
status_addr: 10.1.0.2:8080
partner_url: http://10.1.0.3:8080/
probe_interval: 1s
probe_location: right/active
tunnel_interfaces:
eth1:
role: active
addr: 192.168.255.3:3003
probe_addr: 192.168.255.2:3003
threshold_down: 3
threshold_up: 5
eth2:
role: standby
addr: 192.168.255.35:3003
probe_addr: 192.168.255.34:3003
threshold_down: 5
threshold_up: 7
reconcile:
scripts_timeout: 5s
bridge_activate:
script:
- ["sh", "-c", "echo ${proto} ${bridge_interface} ${bridge_interface_ip} ${bridge_peer_cidr}"]
interface_activate:
script:
- ["ip", "-${proto}", "route", "replace", "${bridge_peer_cidr}", "dev", "${tunnel_interface}"]
interface_deactivate:
script:
- ["ip", "-${proto}", "route", "del", "${bridge_peer_cidr}", "dev", "${tunnel_interface}"]
metrics:
listen_addr: 0.0.0.0:8010