From 48fa8d1179ab9bff060c2ef4efb798370fd5da15 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:26:37 +0200 Subject: kea: T8586: Skip static mappings without match criteria --- python/vyos/kea.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python') 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: -- cgit v1.2.3