Commit 9bbdc96f authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰

[5014] Kea-dhcp6 now actually uses new parser (all unit-tests pass)

parent 8e7ec8f2
......@@ -11,6 +11,7 @@
#include <dhcpsrv/parsers/dhcp_config_parser.h>
#include <dhcp6/json_config_parser.h>
#include <dhcp6/ctrl_dhcp6_srv.h>
#include <dhcp6/parser_context.h>
#include <dhcp6/dhcp6_log.h>
#include <exceptions/exceptions.h>
......@@ -56,7 +57,12 @@ void configure(const std::string& file_name) {
}
// Read contents of the file and parse it as JSON
#if 0
json = isc::data::Element::fromJSONFile(file_name, true);
#else
Parser6Context parser;
json = parser.parseFile(file_name, Parser6Context::PARSER_DHCP6);
#endif
if (!json) {
isc_throw(isc::BadValue, "no configuration found");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment