summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-26 15:25:53 +0100
committerGitHub <noreply@github.com>2024-02-26 15:25:53 +0100
commit8b87836b371fdddb595ad3faf8a91a64f07c2bfb (patch)
treee08c9213d4d9453c1036f279eacf08f813157c02 /python/vyos
parent52df4d62074a76eb173931c5fbaf5a4e22d6e346 (diff)
parent83b435ffe1a6cda47d260fea81c6c6cca1aedd48 (diff)
downloadvyos-1x-8b87836b371fdddb595ad3faf8a91a64f07c2bfb.tar.gz
vyos-1x-8b87836b371fdddb595ad3faf8a91a64f07c2bfb.zip
Merge pull request #3049 from sarthurdev/T6063
dhcp-server: T6063: Add `ignore-client-id` to relax client identifier checks for leases
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/kea.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 894ac9e9a..2328d0b00 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -113,6 +113,9 @@ def kea_parse_subnet(subnet, config):
if 'bootfile_server' in config['option']:
out['next-server'] = config['option']['bootfile_server']
+ if 'ignore_client_id' in config:
+ out['match-client-id'] = False
+
if 'lease' in config:
out['valid-lifetime'] = int(config['lease'])
out['max-valid-lifetime'] = int(config['lease'])