From dcf7325368cda435f65a7224f6245fcb877e0b2b Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 21 May 2024 22:36:08 +0200 Subject: [PATCH] kea: define options and classes for dect-rfps and voip-phones --- roles/kea/templates/kea/kea-dhcp4.conf.j2 | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/roles/kea/templates/kea/kea-dhcp4.conf.j2 b/roles/kea/templates/kea/kea-dhcp4.conf.j2 index 0a0d71d..8f2da66 100644 --- a/roles/kea/templates/kea/kea-dhcp4.conf.j2 +++ b/roles/kea/templates/kea/kea-dhcp4.conf.j2 @@ -61,6 +61,46 @@ "rebind-timer": 1800, "valid-lifetime": 3600, + "option-def": [ + { + "code": 43, + "encapsulate": "sipdect", + "name": "vendor-encapsulated-options", + "space": "dhcp4", + "type": "empty" + }, + { + "code": 10, + "name": "ommip1", + "space": "sipdect", + "type": "ipv4-address" + }, + { + "code": 19, + "name": "ommip2", + "space": "sipdect", + "type": "ipv4-address" + }, + { + "code": 14, + "name": "syslogip", + "space": "sipdect", + "type": "ipv4-address" + }, + { + "code": 15, + "name": "syslogport", + "space": "sipdect", + "type": "int16" + }, + { + "code": 224, + "name": "magic_str", + "space": "dhcp4", + "type": "string" + } + ], + "option-data": [ { "name": "domain-name-servers", @@ -78,6 +118,36 @@ } ], + "client-classes": [ + { + "name": "voip-phone", + "option-data": [ + { + "name": "tftp-server-name", + "data": "172.23.2.36" + } + ] + }, + + { + "name": "dect-rfp", + "option-data": [ + { + "name": "vendor-encapsulated-options" + }, + { + "data": "172.23.2.35", + "name": "ommip1", + "space": "sipdect" + }, + { + "data": "OpenMobilitySIP-DECT", + "name": "magic_str" + } + ] + } + ], + "subnet4": [ { "subnet": "172.23.1.0/24",