2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1405] fixed unittests

This commit is contained in:
Razvan Becheriu
2020-10-12 12:42:19 +03:00
parent b4540aafa5
commit ce8c48be28
3 changed files with 8 additions and 2 deletions

View File

@@ -5308,7 +5308,7 @@ TEST_F(Dhcp4ParserTest, hostReservationPerSubnet) {
" },"
" {"
" \"pools\": [ { \"pool\": \"192.0.3.0/24\" } ],"
" \"subnet\": \"192.0.4.0/24\", "
" \"subnet\": \"192.0.3.0/24\", "
" \"reservation-mode\": \"disabled\""
" },"
" {"
@@ -5400,7 +5400,7 @@ TEST_F(Dhcp4ParserTest, hostReservationModesPerSubnet) {
" },"
" {"
" \"pools\": [ { \"pool\": \"192.0.3.0/24\" } ],"
" \"subnet\": \"192.0.4.0/24\", "
" \"subnet\": \"192.0.3.0/24\", "
" \"reservation-modes\": {"
" \"in-subnet\": false,"
" \"out-of-pool\": false,"

View File

@@ -70,6 +70,7 @@ const SimpleKeywords SimpleParser4::GLOBAL4_PARAMETERS = {
{ "reservations", Element::list },
{ "config-control", Element::map },
{ "server-tag", Element::string },
{ "reservation-mode", Element::string },
{ "reservation-modes", Element::map },
{ "calculate-tee-times", Element::boolean },
{ "t1-percent", Element::real },
@@ -206,6 +207,7 @@ const SimpleKeywords SimpleParser4::SUBNET4_PARAMETERS = {
{ "client-class", Element::string },
{ "require-client-classes", Element::list },
{ "reservations", Element::list },
{ "reservation-mode", Element::string, },
{ "reservation-modes", Element::map, },
{ "relay", Element::map },
{ "match-client-id", Element::boolean },
@@ -323,6 +325,7 @@ const SimpleKeywords SimpleParser4::SHARED_NETWORK4_PARAMETERS = {
{ "server-hostname", Element::string },
{ "boot-file-name", Element::string },
{ "relay", Element::map },
{ "reservation-mode", Element::string, },
{ "reservation-modes", Element::map },
{ "client-class", Element::string },
{ "require-client-classes", Element::list },

View File

@@ -71,6 +71,7 @@ const SimpleKeywords SimpleParser6::GLOBAL6_PARAMETERS = {
{ "reservations", Element::list },
{ "config-control", Element::map },
{ "server-tag", Element::string },
{ "reservation-mode", Element::string, },
{ "reservation-modes", Element::map },
{ "calculate-tee-times", Element::boolean },
{ "t1-percent", Element::real },
@@ -208,6 +209,7 @@ const SimpleKeywords SimpleParser6::SUBNET6_PARAMETERS = {
{ "client-class", Element::string },
{ "require-client-classes", Element::list },
{ "reservations", Element::list },
{ "reservation-mode", Element::string, },
{ "reservation-modes", Element::map },
{ "relay", Element::map },
{ "user-context", Element::map },
@@ -332,6 +334,7 @@ const SimpleKeywords SimpleParser6::SHARED_NETWORK6_PARAMETERS = {
{ "rebind-timer", Element::integer },
{ "option-data", Element::list },
{ "relay", Element::map },
{ "reservation-mode", Element::string, },
{ "reservation-modes", Element::map },
{ "client-class", Element::string },
{ "require-client-classes", Element::list },