summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/dhcp-server/kea-ctrl-agent.conf.j2')
-rw-r--r--data/templates/dhcp-server/kea-ctrl-agent.conf.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/kea-ctrl-agent.conf.j2 b/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
new file mode 100644
index 0000000..b37cf47
--- /dev/null
+++ b/data/templates/dhcp-server/kea-ctrl-agent.conf.j2
@@ -0,0 +1,14 @@
+{
+ "Control-agent": {
+{% if high_availability is vyos_defined %}
+ "http-host": "{{ high_availability.source_address }}",
+ "http-port": 647,
+ "control-sockets": {
+ "dhcp4": {
+ "socket-type": "unix",
+ "socket-name": "/run/kea/dhcp4-ctrl-socket"
+ }
+ }
+{% endif %}
+ }
+}