#include <cc/cfg_to_element.h>
#include <dhcp/tests/iface_mgr_test_config.h>
#include <dhcpsrv/cfgmgr.h>
-#include <dhcpsrv/parsers/simple_parser4.h>
#include <dhcp4/tests/dhcp4_test_utils.h>
#include <dhcp4/tests/get_config_unittest.h>
#include <dhcp4/dhcp4_srv.h>
#include <dhcp4/json_config_parser.h>
+#include <dhcpsrv/parsers/simple_parser4.h>
#include <boost/algorithm/string.hpp>
#include <gtest/gtest.h>
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 1
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 17
" \"type\": \"record\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 18
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 19
" \"type\": \"uint32\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 20
" \"type\": \"uint32\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 21
" \"type\": \"string\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 22
" \"type\": \"string\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 23
" }\n"
" ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"uint32\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 27
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" }\n"
" ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 33
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" }\n"
" ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"string\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 37
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 38
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" \"type\": \"uint32\"\n"
" }\n"
" ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 44
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 45
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 46
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [ ]\n"
" }\n",
// CONFIGURATION 47
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"ethX\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"ethX\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
+" \"shared-networks\": [ ],\n"
" \"subnet4\": [\n"
" {\n"
" \"4o6-interface\": \"\",\n"
};
/// Test a configuration
-
TEST_P(Dhcp4GetConfigTest, run) {
// configurations have not been extracted yet
if (max_config_counter == 0) {
EXPECT_TRUE(isEquivalent(unparsed, unparsed2));
}
-#if 0
-// This test is temporarily disabled. The shared subnets structures have been
-// implemented (#5305), but the parsers are not there yet, so grammar will fail
-// when parseDHCP4 is called. That's comping up in #5357.
-
/// Define the parameterized test loop
INSTANTIATE_TEST_CASE_P(Dhcp4GetConfigTest, Dhcp4GetConfigTest,
::testing::Range(static_cast<size_t>(0), max_config_counter));
-#endif
};
#include <cc/simple_parser.h>
#include <cc/cfg_to_element.h>
#include <dhcp/tests/iface_mgr_test_config.h>
-#include <dhcpsrv/parsers/simple_parser6.h>
#include <dhcpsrv/cfgmgr.h>
#include <dhcp6/tests/dhcp6_test_utils.h>
#include <dhcp6/tests/get_config_unittest.h>
#include <dhcp6/dhcp6_srv.h>
#include <dhcp6/json_config_parser.h>
+#include <dhcpsrv/parsers/simple_parser6.h>
#include <boost/algorithm/string.hpp>
#include <gtest/gtest.h>
///@{
/// @brief extracted configurations
const char* EXTRACTED_CONFIGS[] = {
-/// put this after const char* EXTRACTED_CONFIGS[] = {
// CONFIGURATION 0
"{\n"
" \"interfaces-config\": {\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 1
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1024,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 15
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 16
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 17
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 18
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 19
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 23
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 29
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 30
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"client-class\": \"alpha\",\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 123,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 234,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 36
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 37
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 39
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 40
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 41
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 42
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [ ]\n"
" }\n",
// CONFIGURATION 43
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
" \"time\": 0,\n"
" \"type\": \"LLT\"\n"
" },\n"
+" \"shared-networks\": [ ],\n"
" \"subnet6\": [\n"
" {\n"
" \"id\": 1,\n"
EXPECT_TRUE(isEquivalent(unparsed, unparsed2));
}
-#if 0
-// This test is temporarily disabled. The shared subnets structures have been
-// implemented (#5305), but the parsers are not there yet, so grammar will fail
-// when parseDHCP4 is called. That's comping up in #5357.
-
/// Define the parameterized test loop
INSTANTIATE_TEST_CASE_P(Dhcp6GetConfigTest, Dhcp6GetConfigTest,
::testing::Range(static_cast<size_t>(0), max_config_counter));
-#endif
};