summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorKyrylo Yatsenko <hedrok@gmail.com>2025-09-22 22:10:22 +0300
committerKyrylo Yatsenko <hedrok@gmail.com>2025-10-08 15:07:59 +0300
commit931e5b5712b4fa8b13027291eb21881c40b8a051 (patch)
tree44e5d59bfc8098aab52d750d4441d80058420bfc /data
parentb1a47e7c6388911192a2bccca053735972a82bef (diff)
downloadvyos-1x-931e5b5712b4fa8b13027291eb21881c40b8a051.tar.gz
vyos-1x-931e5b5712b4fa8b13027291eb21881c40b8a051.zip
T7803: Make failover route vrf-aware
* Added 'protocol failover' to 'set vrf name': set vrf name red protocols failover route 10.11.0.110/32 next-hop 10.0.0.2 * Added vrf and interface to target: set ... next-hop 10.0.0.2 check target '10.120.0.21' vrf blue set ... next-hop 10.0.0.2 check target '10.120.0.21' interface eth1 Last two are needed when check VRF is not same as route VRF. In this case icmp can use any/both options, tcp requires `vrf` and arp requires `interface`
Diffstat (limited to 'data')
-rw-r--r--data/templates/protocols/systemd_vyos_failover_service.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/protocols/systemd_vyos_failover_service.j2 b/data/templates/protocols/systemd_vyos_failover_service.j2
index e6501e0f5..59189b1b8 100644
--- a/data/templates/protocols/systemd_vyos_failover_service.j2
+++ b/data/templates/protocols/systemd_vyos_failover_service.j2
@@ -5,7 +5,7 @@ After=vyos-router.service
[Service]
Type=simple
Restart=always
-ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-failover.py --config /run/vyos-failover.conf
+ExecStart=/usr/bin/python3 /usr/libexec/vyos/vyos-failover.py --config-dir {{ config_dir }}
[Install]
WantedBy=multi-user.target