summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/dhcp-server/kea-dhcp4.conf.j24
-rw-r--r--python/vyos/kea.py7
2 files changed, 8 insertions, 3 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2
index 8519689a9..dae2338ae 100644
--- a/data/templates/dhcp-server/kea-dhcp4.conf.j2
+++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2
@@ -41,10 +41,10 @@
"type": "string"
},
{
- "name": "unifi-controller",
+ "name": "ubnt",
"code": 1,
"type": "ipv4-address",
- "space": "ubnt"
+ "space": "vendor-encapsulated-options-space"
}
],
{% if dynamic_dns_update is vyos_defined %}
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index e38347012..5fe070c54 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -153,8 +153,13 @@ def kea_parse_options(config):
config, 'vendor_option', 'ubiquiti', 'unifi_controller'
)
if unifi_controller:
+ options.append({'name': 'vendor-encapsulated-options'})
options.append(
- {'name': 'unifi-controller', 'data': unifi_controller, 'space': 'ubnt'}
+ {
+ 'name': 'ubnt',
+ 'data': unifi_controller,
+ 'space': 'vendor-encapsulated-options-space',
+ }
)
return options