summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-11-14 14:37:30 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-11-14 14:37:30 +0000
commit92631e7516bfe8aebc0332d41c17ba92c93ab7bb (patch)
tree0953b4f858c0c483a24b41b20ddd1c913b5dc004 /data/templates
parentd51765cac49dd1d3b2d489387cd35d41e8b45b3d (diff)
downloadvyos-1x-92631e7516bfe8aebc0332d41c17ba92c93ab7bb.tar.gz
vyos-1x-92631e7516bfe8aebc0332d41c17ba92c93ab7bb.zip
T6876: DHCP-server increase retries that Kea makes to open a socket
KEA DHCP-server sometimes could be in the race condition when an interface is not in the UP state. The server tries to open the socket 5 times with an interval of 5 seconds, then just starts as it is. In this case, users cannot get leases from the interface, which was in the DOWN state before starting KEA, but it is now in the UP state. Increase 'service-sockets-max-retries' from 5 to 60
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dhcp-server/kea-dhcp4.conf.j22
-rw-r--r--data/templates/dhcp-server/kea-dhcp6.conf.j22
2 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2
index 29cf5e082..2e10d58e0 100644
--- a/data/templates/dhcp-server/kea-dhcp4.conf.j2
+++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2
@@ -11,7 +11,7 @@
"interfaces": [ "*" ],
"dhcp-socket-type": "raw",
{% endif %}
- "service-sockets-max-retries": 5,
+ "service-sockets-max-retries": 60,
"service-sockets-retry-wait-time": 5000
},
"control-socket": {
diff --git a/data/templates/dhcp-server/kea-dhcp6.conf.j2 b/data/templates/dhcp-server/kea-dhcp6.conf.j2
index 2f0de6b30..4745d693c 100644
--- a/data/templates/dhcp-server/kea-dhcp6.conf.j2
+++ b/data/templates/dhcp-server/kea-dhcp6.conf.j2
@@ -6,7 +6,7 @@
{% else %}
"interfaces": [ "*" ],
{% endif %}
- "service-sockets-max-retries": 5,
+ "service-sockets-max-retries": 60,
"service-sockets-retry-wait-time": 5000
},
"control-socket": {