summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-01-07 19:42:03 +0100
committerFrancis Dupont <fdupont@isc.org>2019-05-23 00:10:24 +0200
commit7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8 (patch)
tree6fdc34eabab3f6b13a594b8d3b8c1a98d0468a45 /src/bin/netconf
parent[#208,!196] regen flex/bison (diff)
downloadkea-7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8.tar.xz
kea-7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8.zip
[208-move-logging-from-global-objects-to-global-params] Almost done. Checkpoint of the day
Diffstat (limited to 'src/bin/netconf')
-rw-r--r--src/bin/netconf/netconf_cfg_mgr.cc7
-rw-r--r--src/bin/netconf/parser_context.h6
2 files changed, 5 insertions, 8 deletions
diff --git a/src/bin/netconf/netconf_cfg_mgr.cc b/src/bin/netconf/netconf_cfg_mgr.cc
index 5cddc3a5c2..7208280723 100644
--- a/src/bin/netconf/netconf_cfg_mgr.cc
+++ b/src/bin/netconf/netconf_cfg_mgr.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -144,7 +144,7 @@ NetconfCfgMgr::parse(isc::data::ConstElementPtr config_set,
ElementPtr
NetconfConfig::toElement() const {
- ElementPtr netconf = Element::createMap();
+ ElementPtr netconf = ConfigBase::toElement();
// Set user-context
contextToElement(netconf);
// Add in explicitly configured globals.
@@ -161,9 +161,6 @@ NetconfConfig::toElement() const {
// Set Netconf
ElementPtr result = Element::createMap();
result->set("Netconf", netconf);
-
- // Set Logging (not yet)
-
return (result);
}
diff --git a/src/bin/netconf/parser_context.h b/src/bin/netconf/parser_context.h
index a75a89c477..b83fc09ecb 100644
--- a/src/bin/netconf/parser_context.h
+++ b/src/bin/netconf/parser_context.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -190,10 +190,10 @@ public:
///< Used while parsing Netconf/hooks-libraries.
HOOKS_LIBRARIES,
- ///< Used while parsing Logging/loggers structures.
+ ///< Used while parsing Netconf/loggers structures.
LOGGERS,
- ///< Used while parsing Logging/loggers/output_options structures.
+ ///< Used while parsing Netconf/loggers/output_options structures.
OUTPUT_OPTIONS
} LexerContext;