diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-10 18:28:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 18:28:18 +0100 |
commit | 085a15059755cd4724adfc8ffb64f35760c07e0f (patch) | |
tree | 6066419954faa3bc5c8b883ef2376a435e9b969d /data/templates | |
parent | f00779b36af8e282b453bebb1c80e5e619d1e478 (diff) | |
parent | 41913f4d1d63ddd39d9125b0140b8a33449c2cfb (diff) | |
download | vyos-1x-085a15059755cd4724adfc8ffb64f35760c07e0f.tar.gz vyos-1x-085a15059755cd4724adfc8ffb64f35760c07e0f.zip |
Merge pull request #2785 from sarthurdev/kea-options
dhcp: T3316: T5787: T5912: Extend scope of DHCP options, bugfixes
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dhcp-server/kea-dhcp4.conf.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2 index 6ab13ab27..629fa952a 100644 --- a/data/templates/dhcp-server/kea-dhcp4.conf.j2 +++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2 @@ -1,8 +1,16 @@ { "Dhcp4": { "interfaces-config": { +{% if listen_address is vyos_defined %} + "interfaces": {{ listen_address | kea_address_json }}, + "dhcp-socket-type": "udp", +{% elif listen_interface is vyos_defined %} + "interfaces": {{ listen_interface | tojson }}, + "dhcp-socket-type": "raw", +{% else %} "interfaces": [ "*" ], "dhcp-socket-type": "raw", +{% endif %} "service-sockets-max-retries": 5, "service-sockets-retry-wait-time": 5000 }, |