summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/kea.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 8dcd0d6eb..e38347012 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -216,6 +216,9 @@ def kea_parse_subnet(subnet, config):
if 'disable' in host_config:
continue
+ if 'mac' not in host_config and 'duid' not in host_config:
+ continue
+
reservation = {
'hostname': host,
}
@@ -354,6 +357,9 @@ def kea6_parse_subnet(subnet, config):
if 'disable' in host_config:
continue
+ if 'mac' not in host_config and 'duid' not in host_config:
+ continue
+
reservation = {'hostname': host}
if 'mac' in host_config: