2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +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

@@ -473,7 +473,7 @@ const char* CONFIGS[] = {
" \"pools\": ["
" {"
" \"pool\": \"2001:db8:1::10-2001:db8:1::11\","
" \"client-class\": \"reserved_class\""
" \"client-classes\": [ \"reserved_class\" ]"
" }"
" ],\n"
" \"interface\": \"eth0\"\n"
@@ -484,7 +484,7 @@ const char* CONFIGS[] = {
" \"pools\": ["
" {"
" \"pool\": \"2001:db8:2::10-2001:db8:2::11\","
" \"client-class\": \"unreserved_class\""
" \"client-classes\": [ \"unreserved_class\" ]"
" }"
" ],\n"
" \"interface\": \"eth0\"\n"
@@ -522,7 +522,7 @@ const char* CONFIGS[] = {
" \"subnet6\": [\n"
" {\n"
" \"subnet\": \"2001:db8:1::/64\", \n"
" \"client-class\": \"reserved_class\","
" \"client-classes\": [ \"reserved_class\" ],"
" \"id\": 10,"
" \"pools\": ["
" {"
@@ -533,7 +533,7 @@ const char* CONFIGS[] = {
" },\n"
" {\n"
" \"subnet\": \"2001:db8:2::/64\", \n"
" \"client-class\": \"unreserved_class\","
" \"client-classes\": [ \"unreserved_class\" ],"
" \"id\": 11,"
" \"pools\": ["
" {"
@@ -571,11 +571,11 @@ const char* CONFIGS[] = {
" \"pools\": ["
" {"
" \"pool\": \"2001:db8:1::10-2001:db8:1::11\","
" \"client-class\": \"reserved_class\""
" \"client-classes\": [ \"reserved_class\" ]"
" },"
" {"
" \"pool\": \"2001:db8:1::20-2001:db8:1::21\","
" \"client-class\": \"unreserved_class\""
" \"client-classes\": [ \"unreserved_class\" ]"
" }"
" ],\n"
" \"interface\": \"eth0\"\n"