summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-01-07 10:42:38 +0100
committerFrancis Dupont <fdupont@isc.org>2019-05-23 00:10:23 +0200
commitfc24c90c843ed009c4557fb9eb9b5493178f7c21 (patch)
treedf4006b8e4f284b69e6fe2ea385f35bb51de0dc1 /src/bin/netconf
parentupdated ChangeLog (diff)
downloadkea-fc24c90c843ed009c4557fb9eb9b5493178f7c21.tar.xz
kea-fc24c90c843ed009c4557fb9eb9b5493178f7c21.zip
[208-move-logging-from-global-objects-to-global-params] Extended syntax for loggers
Diffstat (limited to 'src/bin/netconf')
-rw-r--r--src/bin/netconf/netconf_lexer.ll3
-rw-r--r--src/bin/netconf/netconf_parser.yy3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/netconf/netconf_lexer.ll b/src/bin/netconf/netconf_lexer.ll
index 5862e9701c..26b3e5117b 100644
--- a/src/bin/netconf/netconf_lexer.ll
+++ b/src/bin/netconf/netconf_lexer.ll
@@ -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
@@ -391,6 +391,7 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
\"loggers\" {
switch(driver.ctx_) {
+ case ParserContext::NETCONF:
case ParserContext::LOGGING:
return NetconfParser::make_LOGGERS(driver.loc_);
default:
diff --git a/src/bin/netconf/netconf_parser.yy b/src/bin/netconf/netconf_parser.yy
index e7ccfe38f0..56898e07b9 100644
--- a/src/bin/netconf/netconf_parser.yy
+++ b/src/bin/netconf/netconf_parser.yy
@@ -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
@@ -277,6 +277,7 @@ global_param: boot_update
| validate_changes
| managed_servers
| hooks_libraries
+ | loggers
| user_context
| comment
| unknown_map_entry