From baf02e790fe50d8fae151815afd3f1037d2c2145 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sat, 2 Nov 2024 17:24:22 +0100 Subject: [PATCH] kea: add options for new yealink voip phones --- roles/kea/templates/kea/kea-dhcp4.conf.j2 | 58 +++++++++++++++++++---- 1 file changed, 49 insertions(+), 9 deletions(-) diff --git a/roles/kea/templates/kea/kea-dhcp4.conf.j2 b/roles/kea/templates/kea/kea-dhcp4.conf.j2 index 7a64253..03a5a90 100644 --- a/roles/kea/templates/kea/kea-dhcp4.conf.j2 +++ b/roles/kea/templates/kea/kea-dhcp4.conf.j2 @@ -133,7 +133,7 @@ "client-classes": [ { - "name": "voip-phone", + "name": "cisco-phone", "option-data": [ { "name": "tftp-server-name", @@ -142,6 +142,16 @@ ] }, + { + "name": "yealink-phone", + "option-data": [ + { + "name": "tftp-server-name", + "data": "tftp://172.23.2.36/yealink/$PN" + } + ] + }, + { "name": "dect-rfp", "option-data": [ @@ -325,27 +335,57 @@ }, { - "hw-address": "00:1D:45:B6:99:2F", + "hw-address": "00:15:65:94:df:39", "hostname": "voip01", - "client-classes": [ "voip-phone" ] + "client-classes": [ "yealink-phone" ] + }, + + { + "hw-address": "00:15:65:94:e2:2d", + "hostname": "voip02", + "client-classes": [ "yealink-phone" ] + }, + + { + "hw-address": "00:15:65:94:df:3a", + "hostname": "voip03", + "client-classes": [ "yealink-phone" ] + }, + + { + "hw-address": "00:15:65:94:de:7f", + "hostname": "voip04", + "client-classes": [ "yealink-phone" ] + }, + + { + "hw-address": "00:15:65:94:e3:39", + "hostname": "voip04", + "client-classes": [ "yealink-phone" ] + }, + + { + "hw-address": "00:1D:45:B6:99:2F", +// "hostname": "voip01", + "client-classes": [ "cisco-phone" ] }, { "hw-address": "00:1D:A2:66:B8:3E", - "hostname": "voip02", - "client-classes": [ "voip-phone" ] +// "hostname": "voip02", + "client-classes": [ "cisco-phone" ] }, { "hw-address": "00:1E:BE:90:FB:DB", - "hostname": "voip03", - "client-classes": [ "voip-phone" ] +// "hostname": "voip03", + "client-classes": [ "cisco-phone" ] }, { "hw-address": "00:1E:BE:90:FF:06", - "hostname": "voip04", - "client-classes": [ "voip-phone" ] +// "hostname": "voip04", + "client-classes": [ "cisco-phone" ] } ] },