diff options
author | Marcin Siodelski <marcin@isc.org> | 2022-11-21 17:30:31 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2023-01-07 11:45:06 +0100 |
commit | 927ac35562c9ca3f2001438928f6a6e894118466 (patch) | |
tree | 342581c03e5bfaf90517a599789d199c1fb2a065 /src/bin | |
parent | [#969] DHCPv6 allocators configurable (diff) | |
download | kea-927ac35562c9ca3f2001438928f6a6e894118466.tar.xz kea-927ac35562c9ca3f2001438928f6a6e894118466.zip |
[#969] Improve allocator parsing code
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/dhcp4/tests/get_config_unittest.cc | 2 | ||||
-rw-r--r-- | src/bin/dhcp6/tests/get_config_unittest.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/dhcp4/tests/get_config_unittest.cc b/src/bin/dhcp4/tests/get_config_unittest.cc index 019968acdb..76fdecce3d 100644 --- a/src/bin/dhcp4/tests/get_config_unittest.cc +++ b/src/bin/dhcp4/tests/get_config_unittest.cc @@ -11174,6 +11174,7 @@ const char* UNPARSED_CONFIGS[] = { " \"server-tag\": \"\",\n" " \"shared-networks\": [\n" " {\n" +" \"allocator\": \"iterative\",\n" " \"calculate-tee-times\": false,\n" " \"max-valid-lifetime\": 7200,\n" " \"min-valid-lifetime\": 7200,\n" @@ -11532,6 +11533,7 @@ const char* UNPARSED_CONFIGS[] = { " \"server-tag\": \"\",\n" " \"shared-networks\": [\n" " {\n" +" \"allocator\": \"iterative\",\n" " \"calculate-tee-times\": true,\n" " \"max-valid-lifetime\": 4000,\n" " \"min-valid-lifetime\": 4000,\n" diff --git a/src/bin/dhcp6/tests/get_config_unittest.cc b/src/bin/dhcp6/tests/get_config_unittest.cc index d15d92c466..89c9f650d7 100644 --- a/src/bin/dhcp6/tests/get_config_unittest.cc +++ b/src/bin/dhcp6/tests/get_config_unittest.cc @@ -10023,6 +10023,7 @@ const char* UNPARSED_CONFIGS[] = { " \"server-tag\": \"\",\n" " \"shared-networks\": [\n" " {\n" +" \"allocator\": \"iterative\",\n" " \"calculate-tee-times\": true,\n" " \"max-preferred-lifetime\": 3600,\n" " \"max-valid-lifetime\": 7200,\n" @@ -10030,6 +10031,7 @@ const char* UNPARSED_CONFIGS[] = { " \"min-valid-lifetime\": 7200,\n" " \"name\": \"foo\",\n" " \"option-data\": [ ],\n" +" \"pd-allocator\": \"iterative\",\n" " \"preferred-lifetime\": 3600,\n" " \"rapid-commit\": false,\n" " \"relay\": {\n" |