diff options
| author | Alex Bukharov <alex.bukharov@innablr.com.au> | 2025-04-23 00:40:06 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-22 15:40:06 +0100 |
| commit | 427ebbb1e103ff45774bdf79bd5b1cddeff2f686 (patch) | |
| tree | 15fb24f4e330f6e7ebb4426996751fefe11cb149 /data | |
| parent | 39e2a908e5d141911820c20bb1a5a5b1b96fa457 (diff) | |
| download | vyos-1x-427ebbb1e103ff45774bdf79bd5b1cddeff2f686.tar.gz vyos-1x-427ebbb1e103ff45774bdf79bd5b1cddeff2f686.zip | |
T6773: RFC-2136 support for Kea DHCP4 server (#4153)
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/dhcp-server/kea-dhcp-ddns.conf.j2 | 30 | ||||
| -rw-r--r-- | data/templates/dhcp-server/kea-dhcp4.conf.j2 | 13 |
2 files changed, 43 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp-ddns.conf.j2 b/data/templates/dhcp-server/kea-dhcp-ddns.conf.j2 new file mode 100644 index 000000000..7b0394a88 --- /dev/null +++ b/data/templates/dhcp-server/kea-dhcp-ddns.conf.j2 @@ -0,0 +1,30 @@ +{ + "DhcpDdns": { + "ip-address": "127.0.0.1", + "port": 53001, + "control-socket": { + "socket-type": "unix", + "socket-name": "/run/kea/kea-ddns-ctrl-socket" + }, + "tsig-keys": {{ dynamic_dns_update | kea_dynamic_dns_update_tsig_key_json }}, + "forward-ddns" : { + "ddns-domains": {{ dynamic_dns_update | kea_dynamic_dns_update_domains('forward_domain') }} + }, + "reverse-ddns" : { + "ddns-domains": {{ dynamic_dns_update | kea_dynamic_dns_update_domains('reverse_domain') }} + }, + "loggers": [ + { + "name": "kea-dhcp-ddns", + "output_options": [ + { + "output": "stdout", + "pattern": "%-5p %m\n" + } + ], + "severity": "INFO", + "debuglevel": 0 + } + ] + } +} diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2 index 8d9ffb194..d08ca0eaa 100644 --- a/data/templates/dhcp-server/kea-dhcp4.conf.j2 +++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2 @@ -36,6 +36,19 @@ "space": "ubnt" } ], +{% if dynamic_dns_update is vyos_defined %} + "dhcp-ddns": { + "enable-updates": true, + "server-ip": "127.0.0.1", + "server-port": 53001, + "sender-ip": "", + "sender-port": 0, + "max-queue-size": 1024, + "ncr-protocol": "UDP", + "ncr-format": "JSON" + }, + {{ dynamic_dns_update | kea_dynamic_dns_update_main_json }} +{% endif %} "hooks-libraries": [ {% if high_availability is vyos_defined %} { |
