summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2024-03-25 18:31:25 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2024-03-25 18:31:25 +0000
commit98f923bd0f4dd66db5c89f38f9aa3c13ba23edcd (patch)
tree4f39d56d94d0858570b95348ab4fc19573e3b810 /data
parent7c0be25eea90cf9324e421b6c2dfda9bda2ecb7e (diff)
downloadvyos-1x-98f923bd0f4dd66db5c89f38f9aa3c13ba23edcd.tar.gz
vyos-1x-98f923bd0f4dd66db5c89f38f9aa3c13ba23edcd.zip
T6171: migrate <set service dhcp-server failover> to <set service dhcp-server high-availability>.
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-server/kea-ctrl-agent.conf.j24
-rw-r--r--data/templates/dhcp-server/kea-dhcp4.conf.j24
2 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/dhcp-server/kea-ctrl-agent.conf.j2 b/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
index 74c63a7a0..b37cf4798 100644
--- a/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
+++ b/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
@@ -1,7 +1,7 @@
{
"Control-agent": {
-{% if failover is vyos_defined %}
- "http-host": "{{ failover.source_address }}",
+{% if high_availability is vyos_defined %}
+ "http-host": "{{ high_availability.source_address }}",
"http-port": 647,
"control-sockets": {
"dhcp4": {
diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2
index 629fa952a..bf37b94f6 100644
--- a/data/templates/dhcp-server/kea-dhcp4.conf.j2
+++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2
@@ -51,11 +51,11 @@
}
],
"hooks-libraries": [
-{% if failover is vyos_defined %}
+{% if high_availability is vyos_defined %}
{
"library": "/usr/lib/{{ machine }}-linux-gnu/kea/hooks/libdhcp_ha.so",
"parameters": {
- "high-availability": [{{ failover | kea_failover_json }}]
+ "high-availability": [{{ high_availability | kea_high_availability_json }}]
}
},
{% endif %}