diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-04-28 17:02:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-28 17:02:01 +0200 |
| commit | 700a4f624f9388b23a749e2bd3aeb31cc1043171 (patch) | |
| tree | 114f57a73306f99d525bfb1d313e0ca9ecc46091 /python | |
| parent | 9c8f3d15cd8ba9f3e0ecdfe7081f7f2d13a59453 (diff) | |
| parent | 48fa8d1179ab9bff060c2ef4efb798370fd5da15 (diff) | |
| download | vyos-1x-700a4f624f9388b23a749e2bd3aeb31cc1043171.tar.gz vyos-1x-700a4f624f9388b23a749e2bd3aeb31cc1043171.zip | |
Merge pull request #5153 from sarthurdev/T8586
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: |
