2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[#3582] Update kea-dhcp6 parsing and UTs

/doc/examples/kea4/all-keys.json
/doc/examples/kea4/classify.json
/doc/examples/kea4/classify2.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea4/hooks-radius.json
/doc/examples/kea6/all-keys.json

/src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, deprecatedClientClassesCheck) - new test

/src/bin/dhcp4/tests/get_config_unittest.cc
    updated

/src/bin/dhcp6/dhcp6_lexer.ll
/src/bin/dhcp6/dhcp6_parser.yy
    added support for client-classes

/src/bin/dhcp6/tests/config_parser_unittest.cc
    updated
    TEST_F(Dhcp6ParserTest, sharedNetworksDeriveClientClass) - removed obsolete test
    TEST_F(Dhcp6ParserTest, deprecatedClientClassesCheck) - new test

/src/bin/dhcp6/tests/get_config_unittest.cc
/src/bin/dhcp6/tests/host_unittest.cc
/src/bin/dhcp6/tests/shared_network_unittest.cc
    updated

src/lib/dhcpsrv/parsers/simple_parser6.cc
    Corrected globals
This commit is contained in:
Thomas Markwalder
2024-10-31 14:37:19 -04:00
parent 24a2bbe164
commit b4ca3bdd20
20 changed files with 2956 additions and 2217 deletions

View File

@@ -802,9 +802,9 @@
"pd-allocator": "iterative",
// Restricts this shared network to allow only clients
// that belong to a particular client class. If an
// empty string is provided, no restriction is applied.
"client-class": "",
// that belong to at least one class in this list. If omitted
// or an empty list is provided, no restriction is applied.
"client-classes": [],
// Shared-network level value. See description at the global level.
"ddns-generated-prefix": "myhost",
@@ -933,10 +933,10 @@
// for the subnet.
"pd-allocator": "iterative",
// Restricts this subnet to allow only clients that belong
// to a particular client class. If an empty string is
// provided, no restriction is applied.
"client-class": "",
// Restricts this subnet to allow only clients
// that belong to at least one class in this list. If omitted
// or an empty list is provided, no restriction is applied.
"client-classes": [],
// Subnet-level value. See description at the global level.
"ddns-generated-prefix": "myhost",
@@ -1004,7 +1004,7 @@
// option will be applied. If the list is empty or is
// omitted this option will be applied regardless of class
// membership.
"client-classes": [ ],
"client-classes": [],
// Option code.
"code": 7,
@@ -1034,9 +1034,10 @@
// clients.
"pd-pools": [
{
// Restricts this prefix pool to be used only for the client
// requests belonging to a particular client class.
"client-class": "phones_server1",
// Restricts this prefix pool subnet to allow only clients
// that belong to at least one class in this list. If omitted
// or an empty list is provided, no restriction is applied.
"client-classes": [ "phones_server1" ],
// Length of prefixes delegated to clients.
"delegated-len": 64,
@@ -1083,9 +1084,10 @@
// List of IP address pools belonging to the subnet.
"pools": [
{
// Restricts this pool to only be used for client
// requests belonging to a particular client class.
"client-class": "phones_server1",
// Restricts this pool subnet to allow only clients
// that belong to at least one class in this list. If omitted
// or an empty list is provided, no restriction is applied.
"client-classes": [ "phones_server1" ],
// Pool-level list of DHCP options.
"option-data": [],
@@ -1098,9 +1100,10 @@
"evaluate-additional-classes": [ "late" ]
},
{
// Restricts this pool to only be used for client
// requests belonging to a particular client class.
"client-class": "phones_server2",
// Restricts this pool subnet to allow only clients
// that belong to at least one class in this list. If omitted
// or an empty list is provided, no restriction is applied.
"client-classes": [ "phones_server2" ],
// Pool-level list of DHCP options.
"option-data": [],