diff options
| author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2026-04-28 14:26:37 +0200 |
|---|---|---|
| committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2026-04-28 14:31:03 +0200 |
| commit | 48fa8d1179ab9bff060c2ef4efb798370fd5da15 (patch) | |
| tree | b9cf30f11706c2b50e3cadb86aea002c158e0d1a /python | |
| parent | e834a6d51090b2a9261f80464be05d4984cbcce0 (diff) | |
| download | vyos-1x-48fa8d1179ab9bff060c2ef4efb798370fd5da15.tar.gz vyos-1x-48fa8d1179ab9bff060c2ef4efb798370fd5da15.zip | |
kea: T8586: Skip static mappings without match criteria
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/kea.py | 6 |
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: |
