From: Tomek Mrugalski Date: Wed, 14 Dec 2016 23:17:56 +0000 (+0100) Subject: [5017] The new parser is now being used. X-Git-Tag: trac5088_base~1^2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdfcf8c886ae2aa0fb68304fd68677d12abe31a8;p=thirdparty%2Fkea.git [5017] The new parser is now being used. --- diff --git a/src/bin/dhcp4/kea_controller.cc b/src/bin/dhcp4/kea_controller.cc index 102691cc3b..60a289bb02 100644 --- a/src/bin/dhcp4/kea_controller.cc +++ b/src/bin/dhcp4/kea_controller.cc @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -52,7 +53,8 @@ void configure(const std::string& file_name) { } // Read contents of the file and parse it as JSON - json = isc::data::Element::fromJSONFile(file_name, true); + Parser4Context parser; + json = parser.parseFile(file_name, Parser4Context::PARSER_DHCP4); if (!json) { isc_throw(isc::BadValue, "no configuration found"); }