diff options
author | Thomas Markwalder <tmark@isc.org> | 2021-08-05 20:05:32 +0200 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2021-08-20 14:43:29 +0200 |
commit | d98770b09cc4ccd444ddcbc67033c066e6b7127c (patch) | |
tree | 4e8733d55aedbc5fca4c4823d63000b17222ab2d /doc/examples/kea6 | |
parent | [#2045] hammer.py: remove unused sysrepo versions (diff) | |
download | kea-d98770b09cc4ccd444ddcbc67033c066e6b7127c.tar.xz kea-d98770b09cc4ccd444ddcbc67033c066e6b7127c.zip |
[#1710] Added lifetimes to v6 client classes
kea-dhcp6 client classes now support valid and preferred
lifetime triplets. Need to update ARM and CB yet.
/doc/examples/kea6/all-keys.json
Updated
/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll
Added preferred and valid lifetime parameters to client class
/src/bin/dhcp6/dhcp6_parser.yy
Added preferred and valid lifetime parameters to client class
src/bin/dhcp6/tests/config_parser_unittest.cc
TEST_F(Dhcp6ParserTest, clientClassValidPreferredLifetime) - new test
/src/bin/dhcp6/tests/parser_unittest.cc
Added use of EXPECT_NO_THROW_LOG to ease finding JSON errors
/src/lib/dhcpsrv/alloc_engine.*
AllocEngine::getLifetimes6() - new function
Lease6Ptr AllocEngine::createLease6() - calls new function
/src/lib/dhcpsrv/client_class_def.*
/src/lib/dhcpsrv/parsers/client_class_def_parser.cc
ClientClassDef - added support for preferred lifetime triplet
/src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
TEST_F(AllocEngine6Test, getValidLifetime)
TEST_F(AllocEngine6Test, getPreferredLifetime) - new tests
/src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
TEST_F(ClientClassDefParserTest, preferredLifetimeTests) - new test
/src/lib/dhcpsrv/tests/client_class_def_unittest.cc
updated tests
Diffstat (limited to 'doc/examples/kea6')
-rw-r--r-- | doc/examples/kea6/all-keys.json | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/examples/kea6/all-keys.json b/doc/examples/kea6/all-keys.json index 9be4be0d72..1504d5f75f 100644 --- a/doc/examples/kea6/all-keys.json +++ b/doc/examples/kea6/all-keys.json @@ -22,7 +22,25 @@ // Class selection expression. The DHCP packet is assigned to this // class when the given expression evaluates to true. - "test": "member('HA_server1')" + "test": "member('HA_server1')", + + // Class valid lifetime. + "valid-lifetime": 6000, + + // Class min valid lifetime. + "min-valid-lifetime": 4000, + + // Class max valid lifetime. + "max-valid-lifetime": 8000, + + // Class preferred lifetime. + "preferred-lifetime": 7000, + + // Class min preferred lifetime. + "min-preferred-lifetime": 5000, + + // Class max preferred lifetime. + "max-preferred-lifetime": 9000 }, { // Second class name. |