1 /**************************************************************************//**
3 * load_unload the module in kea
9 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
22 ****************************************************************************/
25 #include "library_common.h"
27 using namespace isc::hooks;
28 namespace pt = boost::property_tree;
30 std::string param_url;
31 std::string json_params[3];
34 int load(LibraryHandle& handle) {
36 pt::read_json("/etc/kea/kea-sdnc-notify.conf", root);
38 json_params[0] = (root.get<std::string>("url"));
39 json_params[1] = (root.get<std::string>("siaddr"));
41 std::cout << "kea-sdnc-notify.so loaded\n" << std::endl;