diff options
author | Simon <965089+sarthurdev@users.noreply.github.com> | 2024-01-11 06:46:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 06:46:33 +0100 |
commit | ee494c3a1dbfca3457bcaffe89d45971348e4848 (patch) | |
tree | 4e29926fae96e8837e6b903fc46478a92e6890da /python | |
parent | 7c6cb9829356d07c3cfa865eff7f60c24d982d6e (diff) | |
download | vyos-1x-ee494c3a1dbfca3457bcaffe89d45971348e4848.tar.gz vyos-1x-ee494c3a1dbfca3457bcaffe89d45971348e4848.zip |
dhcp: dhcpv6: T3316: Add `subnet-id` so leases remain mapped to entries in the lease file (#2796)
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/kea.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py index 3d8cf3637..aa4fb7ae5 100644 --- a/python/vyos/kea.py +++ b/python/vyos/kea.py @@ -103,7 +103,7 @@ def kea_parse_options(config): return options def kea_parse_subnet(subnet, config): - out = {'subnet': subnet} + out = {'subnet': subnet, 'id': int(config['subnet_id'])} options = [] if 'option' in config: @@ -217,7 +217,7 @@ def kea6_parse_options(config): return options def kea6_parse_subnet(subnet, config): - out = {'subnet': subnet} + out = {'subnet': subnet, 'id': int(config['subnet_id'])} options = kea6_parse_options(config) if 'address_range' in config: |