2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#3003] output_options alias for output-options

This commit is contained in:
Razvan Becheriu 2023-08-21 08:10:45 +03:00
parent 00de180563
commit 150ef07994
111 changed files with 196 additions and 196 deletions

View File

@ -126,7 +126,7 @@
"loggers": [
{
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-ctrl-agent.log",
// Several additional parameters are possible in addition

View File

@ -152,7 +152,7 @@
"name": "kea-dhcp-ddns",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -152,7 +152,7 @@
"name": "kea-dhcp-ddns",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -148,7 +148,7 @@
"loggers": [
{
"name": "kea-dhcp-ddns",
"output_options": [
"output-options": [
{
"output": "stdout",
// Several additional parameters are possible in addition

View File

@ -184,7 +184,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout",
// Several additional parameters are possible in addition

View File

@ -1211,7 +1211,7 @@
"name": "kea-dhcp4",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -1239,7 +1239,7 @@
"name": "kea-dhcp4",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -92,7 +92,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -134,7 +134,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -167,7 +167,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -78,7 +78,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -34,7 +34,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "/tmp/kea-dhcp4.log"
}

View File

@ -165,7 +165,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -259,7 +259,7 @@
// component. It tells DHCPv4 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}
@ -271,7 +271,7 @@
// This section specifies configuration of the HA hook library-specific
// logger.
"name": "kea-dhcp4.ha-hooks",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -242,7 +242,7 @@
// component. It tells DHCPv4 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}
@ -254,7 +254,7 @@
// This section specifies configuration of the HA hook library-specific
// logger.
"name": "kea-dhcp4.ha-hooks",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -63,7 +63,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -174,7 +174,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -90,7 +90,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -88,7 +88,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -170,7 +170,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -73,7 +73,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -47,7 +47,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -72,7 +72,7 @@
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -164,7 +164,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout",
// Several additional parameters are possible in addition

View File

@ -1185,7 +1185,7 @@
"name": "kea-dhcp6",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -1213,7 +1213,7 @@
"name": "kea-dhcp6",
// Configures how the log should be output.
"output_options": [
"output-options": [
{
// Determines whether the log should be flushed to a file.
"flush": true,

View File

@ -93,7 +93,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -99,7 +99,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -136,7 +136,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -78,7 +78,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -44,7 +44,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "/tmp/kea-dhcp6.log"
}

View File

@ -73,7 +73,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -66,7 +66,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -160,7 +160,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -144,7 +144,7 @@
// component. It tells DHCPv6 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}
@ -156,7 +156,7 @@
// This section specifies configuration of the HA hook library-specific
// logger.
"name": "kea-dhcp6.ha-hooks",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -135,7 +135,7 @@
// component. It tells DHCPv6 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}
@ -147,7 +147,7 @@
// This section specifies configuration of the HA hook library-specific
// logger.
"name": "kea-dhcp6.ha-hooks",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -71,7 +71,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -170,7 +170,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -87,7 +87,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -84,7 +84,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -157,7 +157,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -47,7 +47,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -49,7 +49,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -76,7 +76,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-debug.log"
}

View File

@ -59,7 +59,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -75,7 +75,7 @@
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout"
}

View File

@ -17,7 +17,7 @@
[
{
"name": "kea-netconf",
"output_options":
"output-options":
[
{
"output": "stderr"

View File

@ -90,7 +90,7 @@
"loggers": [
{
"name": "kea-netconf",
"output_options": [
"output-options": [
{
// "output": "/var/log/kea-netconf.log",
"output": "stdout",

View File

@ -91,7 +91,7 @@
"loggers": [
{
"name": "kea-netconf",
"output_options": [
"output-options": [
{
// "output": "/var/log/kea-netconf.log",
"output": "stdout",

View File

@ -65,7 +65,7 @@
"loggers": [
{
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-ctrl-agent.log",

View File

@ -65,7 +65,7 @@
"loggers": [
{
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-ctrl-agent.log",

View File

@ -223,7 +223,7 @@
// will be rotated once it grows to 2MB and up to 4 files will be kept. The debuglevel
// (range 0 to 99) is used only when logging on DEBUG level.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-dhcp4.log",
"maxsize": 2048000,

View File

@ -223,7 +223,7 @@
// will be rotated once it grows to 2MB and up to 4 files will be kept. The debuglevel
// (range 0 to 99) is used only when logging on DEBUG level.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-dhcp4.log",
"maxsize": 2048000,

View File

@ -41,7 +41,7 @@
"loggers": [
{
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-ctrl-agent.log",

View File

@ -41,7 +41,7 @@
"loggers": [
{
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-ctrl-agent.log",

View File

@ -212,7 +212,7 @@
// will be rotated once it grows to 2MB and up to 4 files will be kept. The debuglevel
// (range 0 to 99) is used only when logging on DEBUG level.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-dhcp4.log",
"maxsize": 2048000,

View File

@ -212,7 +212,7 @@
// will be rotated once it grows to 2MB and up to 4 files will be kept. The debuglevel
// (range 0 to 99) is used only when logging on DEBUG level.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "/var/log/kea-dhcp4.log",
"maxsize": 2048000,

View File

@ -121,7 +121,7 @@ memfile_init_test() {
{
"debuglevel": 99,
"name": "kea-dhcpx",
"output_options": [
"output-options": [
{
"output": "@abs_top_builddir@/src/bin/admin/tests/kea.log"
}

View File

@ -1697,16 +1697,16 @@ namespace isc { namespace agent {
case 185: // $@39: %empty
#line 791 "agent_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
ctx.unique("output-options", ctx.loc2pos(yystack_[0].location));
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
#line 1707 "agent_parser.cc"
break;
case 186: // output_options_list: "output_options" $@39 ":" "[" output_options_list_content "]"
case 186: // output_options_list: "output-options" $@39 ":" "[" output_options_list_content "]"
#line 797 "agent_parser.yy"
{
ctx.stack_.pop_back();
@ -2454,7 +2454,7 @@ namespace isc { namespace agent {
"\"key-file\"", "\"cert-required\"", "\"control-sockets\"", "\"dhcp4\"",
"\"dhcp6\"", "\"d2\"", "\"socket-name\"", "\"socket-type\"", "\"unix\"",
"\"hooks-libraries\"", "\"library\"", "\"parameters\"", "\"loggers\"",
"\"name\"", "\"output_options\"", "\"output\"", "\"debuglevel\"",
"\"name\"", "\"output-options\"", "\"output\"", "\"debuglevel\"",
"\"severity\"", "\"flush\"", "\"maxsize\"", "\"maxver\"", "\"pattern\"",
"START_JSON", "START_AGENT", "START_SUB_AGENT", "\"constant string\"",
"\"integer\"", "\"floating point\"", "\"boolean\"", "$accept", "start",

View File

@ -531,7 +531,7 @@ namespace isc { namespace agent {
TOKEN_PARAMETERS = 293, // "parameters"
TOKEN_LOGGERS = 294, // "loggers"
TOKEN_NAME = 295, // "name"
TOKEN_OUTPUT_OPTIONS = 296, // "output_options"
TOKEN_OUTPUT_OPTIONS = 296, // "output-options"
TOKEN_OUTPUT = 297, // "output"
TOKEN_DEBUGLEVEL = 298, // "debuglevel"
TOKEN_SEVERITY = 299, // "severity"
@ -605,7 +605,7 @@ namespace isc { namespace agent {
S_PARAMETERS = 38, // "parameters"
S_LOGGERS = 39, // "loggers"
S_NAME = 40, // "name"
S_OUTPUT_OPTIONS = 41, // "output_options"
S_OUTPUT_OPTIONS = 41, // "output-options"
S_OUTPUT = 42, // "output"
S_DEBUGLEVEL = 43, // "debuglevel"
S_SEVERITY = 44, // "severity"

View File

@ -90,7 +90,7 @@ using namespace std;
LOGGERS "loggers"
NAME "name"
OUTPUT_OPTIONS "output_options"
OUTPUT_OPTIONS "output-options"
OUTPUT "output"
DEBUGLEVEL "debuglevel"
SEVERITY "severity"
@ -789,9 +789,9 @@ severity: SEVERITY {
};
output_options_list: OUTPUT_OPTIONS {
ctx.unique("output_options", ctx.loc2pos(@1));
ctx.unique("output-options", ctx.loc2pos(@1));
ElementPtr l(new ListElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
} COLON LSQUARE_BRACKET output_options_list_content RSQUARE_BRACKET {

View File

@ -227,7 +227,7 @@ public:
///< Used while parsing Control-agent/loggers structures.
LOGGERS,
///< Used while parsing Control-agent/loggers/output_options structures.
///< Used while parsing Control-agent/loggers/output-options structures.
OUTPUT_OPTIONS
} LexerContext;

View File

@ -32,7 +32,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-ctrl-agent\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -285,12 +285,12 @@ TEST(ParserTest, embbededComments) {
testParser(txt, ParserContext::PARSER_AGENT, false);
}
// Test that output-options is an alias of output_options.
// Test that output_options is an alias of output-options.
TEST(ParserTest, outputDashOptions) {
string txt = "{ \"Control-agent\": {"
" \"loggers\": [ { "
" \"name\": \"kea-ctrl-agent\","
" \"output-options\": [ { \"output\": \"stdout\" } ],"
" \"output_options\": [ { \"output\": \"stdout\" } ],"
" \"severity\": \"INFO\" } ]"
"} }";
testParser(txt, ParserContext::PARSER_AGENT, false);
@ -912,7 +912,7 @@ TEST_F(TrailingCommasTest, tests) {
{
"debuglevel": 99,
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
"output": "stdout",
},

View File

@ -1,6 +1,6 @@
#line 1 "d2_lexer.cc"
#line 2 "d2_lexer.cc"
#line 3 "d2_lexer.cc"
#line 4 "d2_lexer.cc"
#define YY_INT_ALIGNED short int
@ -1142,7 +1142,7 @@ unsigned int comment_start_line = 0;
/* To avoid the call to exit... oops! */
#define YY_FATAL_ERROR(msg) isc::d2::D2ParserContext::fatal(msg)
#line 1145 "d2_lexer.cc"
#line 1146 "d2_lexer.cc"
/* noyywrap disables automatic rewinding for the next file to parse. Since we
always parse only a single string, there's no need to do any wraps. And
using yywrap requires linking with -lfl, which provides the default yywrap
@ -1168,8 +1168,8 @@ unsigned int comment_start_line = 0;
by moving it ahead by yyleng bytes. yyleng specifies the length of the
currently matched token. */
#define YY_USER_ACTION driver.loc_.columns(yyleng);
#line 1171 "d2_lexer.cc"
#line 1172 "d2_lexer.cc"
#line 1173 "d2_lexer.cc"
#define INITIAL 0
#define COMMENT 1
@ -1489,7 +1489,7 @@ YY_DECL
}
#line 1492 "d2_lexer.cc"
#line 1493 "d2_lexer.cc"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@ -2483,7 +2483,7 @@ YY_RULE_SETUP
#line 826 "d2_lexer.ll"
ECHO;
YY_BREAK
#line 2486 "d2_lexer.cc"
#line 2487 "d2_lexer.cc"
case YY_END_OF_BUFFER:
{

View File

@ -1940,16 +1940,16 @@ namespace isc { namespace d2 {
case 235: // $@54: %empty
#line 915 "d2_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
ctx.unique("output-options", ctx.loc2pos(yystack_[0].location));
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
#line 1950 "d2_parser.cc"
break;
case 236: // output_options_list: "output_options" $@54 ":" "[" output_options_list_content "]"
case 236: // output_options_list: "output-options" $@54 ":" "[" output_options_list_content "]"
#line 921 "d2_parser.yy"
{
ctx.stack_.pop_back();
@ -2744,7 +2744,7 @@ namespace isc { namespace d2 {
"\"dns-servers\"", "\"hostname\"", "\"tsig-keys\"", "\"algorithm\"",
"\"digest-bits\"", "\"secret\"", "\"control-socket\"", "\"socket-type\"",
"\"socket-name\"", "\"hooks-libraries\"", "\"library\"",
"\"parameters\"", "\"loggers\"", "\"name\"", "\"output_options\"",
"\"parameters\"", "\"loggers\"", "\"name\"", "\"output-options\"",
"\"output\"", "\"debuglevel\"", "\"severity\"", "\"flush\"",
"\"maxsize\"", "\"maxver\"", "\"pattern\"", "TOPLEVEL_JSON",
"TOPLEVEL_DHCPDDNS", "SUB_DHCPDDNS", "SUB_TSIG_KEY", "SUB_TSIG_KEYS",

View File

@ -529,7 +529,7 @@ namespace isc { namespace d2 {
TOKEN_PARAMETERS = 291, // "parameters"
TOKEN_LOGGERS = 292, // "loggers"
TOKEN_NAME = 293, // "name"
TOKEN_OUTPUT_OPTIONS = 294, // "output_options"
TOKEN_OUTPUT_OPTIONS = 294, // "output-options"
TOKEN_OUTPUT = 295, // "output"
TOKEN_DEBUGLEVEL = 296, // "debuglevel"
TOKEN_SEVERITY = 297, // "severity"
@ -608,7 +608,7 @@ namespace isc { namespace d2 {
S_PARAMETERS = 36, // "parameters"
S_LOGGERS = 37, // "loggers"
S_NAME = 38, // "name"
S_OUTPUT_OPTIONS = 39, // "output_options"
S_OUTPUT_OPTIONS = 39, // "output-options"
S_OUTPUT = 40, // "output"
S_DEBUGLEVEL = 41, // "debuglevel"
S_SEVERITY = 42, // "severity"

View File

@ -86,7 +86,7 @@ using namespace std;
LOGGERS "loggers"
NAME "name"
OUTPUT_OPTIONS "output_options"
OUTPUT_OPTIONS "output-options"
OUTPUT "output"
DEBUGLEVEL "debuglevel"
SEVERITY "severity"
@ -913,9 +913,9 @@ severity: SEVERITY {
};
output_options_list: OUTPUT_OPTIONS {
ctx.unique("output_options", ctx.loc2pos(@1));
ctx.unique("output-options", ctx.loc2pos(@1));
ElementPtr l(new ListElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
} COLON LSQUARE_BRACKET output_options_list_content RSQUARE_BRACKET {

View File

@ -260,7 +260,7 @@ public:
/// Used while parsing DhcpDdns/loggers structures.
LOGGERS,
/// Used while parsing DhcpDdns/loggers/output_options structures.
/// Used while parsing DhcpDdns/loggers/output-options structures.
OUTPUT_OPTIONS,
/// Used while parsing DhcpDdns/ncr-protocol

View File

@ -32,7 +32,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-dhcp-ddns\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -55,7 +55,7 @@ CONFIG_BAD_SYNTAX="{
\"loggers\": [
{
\"name\": \"kea-dhcp-ddns\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -78,7 +78,7 @@ CONFIG_BAD_VALUE="{
\"loggers\": [
{
\"name\": \"kea-dhcp-ddns\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -102,7 +102,7 @@ CONFIG_INVALID="{
\"loggers\": [
{
\"name\": \"kea-dhcp-ddns\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -240,14 +240,14 @@ TEST(ParserTest, embbededComments) {
testParser(txt, D2ParserContext::PARSER_DHCPDDNS, false);
}
// Test that output-options is an alias of output_options.
// Test that output_options is an alias of output-options.
TEST(ParserTest, outputDashOptions) {
string txt =
"{ \"DhcpDdns\" : \n"
"{ \n"
" \"loggers\": [ {\n"
" \"name\": \"kea-dhcp-ddns\",\n"
" \"output-options\": [ { \"output\": \"stdout\" } ],\n"
" \"output_options\": [ { \"output\": \"stdout\" } ],\n"
" \"severity\": \"INFO\" } ]\n"
" } \n"
"} \n";
@ -851,7 +851,7 @@ TEST_F(TrailingCommasTest, tests) {
"loggers": [
{
"name": "kea-dhcp-ddns",
"output_options": [
"output-options": [
{
"output": "stdout"
},

View File

@ -46,7 +46,7 @@
{
"debuglevel": 0,
"name": "kea-dhcp-ddns",
"output_options": [
"output-options": [
{
"flush": true,
"output": "stdout",

View File

@ -4597,16 +4597,16 @@ namespace isc { namespace dhcp {
case 830: // $@132: %empty
#line 2908 "dhcp4_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
ctx.unique("output-options", ctx.loc2pos(yystack_[0].location));
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
#line 4607 "dhcp4_parser.cc"
break;
case 831: // output_options_list: "output_options" $@132 ":" "[" output_options_list_content "]"
case 831: // output_options_list: "output-options" $@132 ":" "[" output_options_list_content "]"
#line 2914 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
@ -6192,7 +6192,7 @@ namespace isc { namespace dhcp {
"\"when-present\"", "\"never\"", "\"always\"", "\"when-not-present\"",
"\"hostname-char-set\"", "\"hostname-char-replacement\"",
"\"early-global-reservations-lookup\"", "\"ip-reservations-unique\"",
"\"reservations-lookup-first\"", "\"loggers\"", "\"output_options\"",
"\"reservations-lookup-first\"", "\"loggers\"", "\"output-options\"",
"\"output\"", "\"debuglevel\"", "\"severity\"", "\"flush\"",
"\"maxsize\"", "\"maxver\"", "\"pattern\"", "\"compatibility\"",
"\"lenient-option-parsing\"", "\"ignore-dhcp-server-identifier\"",

View File

@ -691,7 +691,7 @@ namespace isc { namespace dhcp {
TOKEN_IP_RESERVATIONS_UNIQUE = 446, // "ip-reservations-unique"
TOKEN_RESERVATIONS_LOOKUP_FIRST = 447, // "reservations-lookup-first"
TOKEN_LOGGERS = 448, // "loggers"
TOKEN_OUTPUT_OPTIONS = 449, // "output_options"
TOKEN_OUTPUT_OPTIONS = 449, // "output-options"
TOKEN_OUTPUT = 450, // "output"
TOKEN_DEBUGLEVEL = 451, // "debuglevel"
TOKEN_SEVERITY = 452, // "severity"
@ -933,7 +933,7 @@ namespace isc { namespace dhcp {
S_IP_RESERVATIONS_UNIQUE = 191, // "ip-reservations-unique"
S_RESERVATIONS_LOOKUP_FIRST = 192, // "reservations-lookup-first"
S_LOGGERS = 193, // "loggers"
S_OUTPUT_OPTIONS = 194, // "output_options"
S_OUTPUT_OPTIONS = 194, // "output-options"
S_OUTPUT = 195, // "output"
S_DEBUGLEVEL = 196, // "debuglevel"
S_SEVERITY = 197, // "severity"

View File

@ -259,7 +259,7 @@ using namespace std;
RESERVATIONS_LOOKUP_FIRST "reservations-lookup-first"
LOGGERS "loggers"
OUTPUT_OPTIONS "output_options"
OUTPUT_OPTIONS "output-options"
OUTPUT "output"
DEBUGLEVEL "debuglevel"
SEVERITY "severity"
@ -2906,9 +2906,9 @@ severity: SEVERITY {
};
output_options_list: OUTPUT_OPTIONS {
ctx.unique("output_options", ctx.loc2pos(@1));
ctx.unique("output-options", ctx.loc2pos(@1));
ElementPtr l(new ListElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
} COLON LSQUARE_BRACKET output_options_list_content RSQUARE_BRACKET {

View File

@ -314,7 +314,7 @@ public:
/// Used while parsing Dhcp4/loggers structures.
LOGGERS,
/// Used while parsing Dhcp4/loggers/output_options structures.
/// Used while parsing Dhcp4/loggers/output-options structures.
OUTPUT_OPTIONS,
/// Used while parsing Dhcp4/dhcp-ddns.

View File

@ -790,7 +790,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, configSet) {
" ,\"loggers\": [ { \n"
" \"name\": \"kea\", \n"
" \"severity\": \"FATAL\", \n"
" \"output_options\": [{ \n"
" \"output-options\": [{ \n"
" \"output\": \"/dev/null\" \n"
" }] \n"
" }] \n";
@ -1005,7 +1005,7 @@ TEST_F(CtrlChannelDhcpv4SrvTest, configTest) {
" ,\"loggers\": [ { \n"
" \"name\": \"kea\", \n"
" \"severity\": \"FATAL\", \n"
" \"output_options\": [{ \n"
" \"output-options\": [{ \n"
" \"output\": \"/dev/null\" \n"
" }] \n"
" }] \n";

View File

@ -56,7 +56,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -92,7 +92,7 @@ CONFIG_BAD_SYNTAX="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -128,7 +128,7 @@ CONFIG_BAD_VALUES="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -164,7 +164,7 @@ CONFIG_INVALID="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -216,7 +216,7 @@ INVALID_CONFIG_HOOKS_LOAD="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -268,7 +268,7 @@ INVALID_CONFIG_HOOKS_CALLOUT_FAIL="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -241,7 +241,7 @@ TEST(ParserTest, embbededComments) {
testParser(txt, Parser4Context::PARSER_DHCP4, false);
}
// Test that output-options is an alias of output_options.
// Test that output_options is an alias of output-options.
TEST(ParserTest, outputDashOptions) {
string txt = "{ \"Dhcp4\": { \"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
@ -251,7 +251,7 @@ TEST(ParserTest, outputDashOptions) {
"\"valid-lifetime\": 4000,\n"
"\"loggers\": [ { "
" \"name\": \"kea-dhcp4\","
" \"output-options\": [ { \"output\": \"stdout\" } ],"
" \"output_options\": [ { \"output\": \"stdout\" } ],"
" \"severity\": \"INFO\" } ]\n"
"} }";
testParser(txt, Parser4Context::PARSER_DHCP4, false);
@ -950,7 +950,7 @@ TEST_F(TrailingCommasTest, tests) {
{
"debuglevel": 99,
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
"output": "stdout",
},

View File

@ -4760,16 +4760,16 @@ namespace isc { namespace dhcp {
case 869: // $@137: %empty
#line 3054 "dhcp6_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
ctx.unique("output-options", ctx.loc2pos(yystack_[0].location));
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
#line 4770 "dhcp6_parser.cc"
break;
case 870: // output_options_list: "output_options" $@137 ":" "[" output_options_list_content "]"
case 870: // output_options_list: "output-options" $@137 ":" "[" output_options_list_content "]"
#line 3060 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
@ -6363,7 +6363,7 @@ namespace isc { namespace dhcp {
"\"when-not-present\"", "\"hostname-char-set\"",
"\"hostname-char-replacement\"", "\"early-global-reservations-lookup\"",
"\"ip-reservations-unique\"", "\"reservations-lookup-first\"",
"\"loggers\"", "\"output_options\"", "\"output\"", "\"debuglevel\"",
"\"loggers\"", "\"output-options\"", "\"output\"", "\"debuglevel\"",
"\"severity\"", "\"flush\"", "\"maxsize\"", "\"maxver\"", "\"pattern\"",
"\"compatibility\"", "\"lenient-option-parsing\"", "TOPLEVEL_JSON",
"TOPLEVEL_DHCP6", "SUB_DHCP6", "SUB_INTERFACES6", "SUB_SUBNET6",

View File

@ -697,7 +697,7 @@ namespace isc { namespace dhcp {
TOKEN_IP_RESERVATIONS_UNIQUE = 453, // "ip-reservations-unique"
TOKEN_RESERVATIONS_LOOKUP_FIRST = 454, // "reservations-lookup-first"
TOKEN_LOGGERS = 455, // "loggers"
TOKEN_OUTPUT_OPTIONS = 456, // "output_options"
TOKEN_OUTPUT_OPTIONS = 456, // "output-options"
TOKEN_OUTPUT = 457, // "output"
TOKEN_DEBUGLEVEL = 458, // "debuglevel"
TOKEN_SEVERITY = 459, // "severity"
@ -944,7 +944,7 @@ namespace isc { namespace dhcp {
S_IP_RESERVATIONS_UNIQUE = 198, // "ip-reservations-unique"
S_RESERVATIONS_LOOKUP_FIRST = 199, // "reservations-lookup-first"
S_LOGGERS = 200, // "loggers"
S_OUTPUT_OPTIONS = 201, // "output_options"
S_OUTPUT_OPTIONS = 201, // "output-options"
S_OUTPUT = 202, // "output"
S_DEBUGLEVEL = 203, // "debuglevel"
S_SEVERITY = 204, // "severity"

View File

@ -266,7 +266,7 @@ using namespace std;
RESERVATIONS_LOOKUP_FIRST "reservations-lookup-first"
LOGGERS "loggers"
OUTPUT_OPTIONS "output_options"
OUTPUT_OPTIONS "output-options"
OUTPUT "output"
DEBUGLEVEL "debuglevel"
SEVERITY "severity"
@ -3052,9 +3052,9 @@ severity: SEVERITY {
};
output_options_list: OUTPUT_OPTIONS {
ctx.unique("output_options", ctx.loc2pos(@1));
ctx.unique("output-options", ctx.loc2pos(@1));
ElementPtr l(new ListElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
} COLON LSQUARE_BRACKET output_options_list_content RSQUARE_BRACKET {

View File

@ -320,7 +320,7 @@ public:
/// Used while parsing Dhcp6/loggers structures.
LOGGERS,
/// Used while parsing Dhcp6/loggers/output_options structures.
/// Used while parsing Dhcp6/loggers/output-options structures.
OUTPUT_OPTIONS,
/// Used while parsing Dhcp6/dhcp-ddns.

View File

@ -703,7 +703,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, configSet) {
" ,\"loggers\": [ { \n"
" \"name\": \"kea\", \n"
" \"severity\": \"FATAL\", \n"
" \"output_options\": [{ \n"
" \"output-options\": [{ \n"
" \"output\": \"/dev/null\" \n"
" }] \n"
" }] \n";
@ -919,7 +919,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, configTest) {
" ,\"loggers\": [ { \n"
" \"name\": \"kea\", \n"
" \"severity\": \"FATAL\", \n"
" \"output_options\": [{ \n"
" \"output-options\": [{ \n"
" \"output\": \"/dev/null\" \n"
" }] \n"
" }] \n";

View File

@ -61,7 +61,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -98,7 +98,7 @@ CONFIG_BAD_SYNTAX="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -135,7 +135,7 @@ CONFIG_INVALID="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -228,7 +228,7 @@ INVALID_CONFIG_HOOKS_LOAD="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -285,7 +285,7 @@ INVALID_CONFIG_HOOKS_CALLOUT_FAIL="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -246,7 +246,7 @@ TEST(ParserTest, embbededComments) {
testParser(txt, Parser6Context::PARSER_DHCP6, false);
}
// Test that output-options is an alias of output_options.
// Test that output_options is an alias of output-options.
TEST(ParserTest, outputDashOptions) {
string txt = "{ \"Dhcp6\": { \"interfaces-config\": {"
" \"interfaces\": [ \"*\" ]"
@ -257,7 +257,7 @@ TEST(ParserTest, outputDashOptions) {
"\"valid-lifetime\": 4000,\n"
"\"loggers\": [ { "
" \"name\": \"kea-dhcp6\","
" \"output-options\": [ { \"output\": \"stdout\" } ],"
" \"output_options\": [ { \"output\": \"stdout\" } ],"
" \"severity\": \"INFO\" } ]\n"
"} }";
testParser(txt, Parser6Context::PARSER_DHCP6, false);
@ -941,7 +941,7 @@ TEST_F(TrailingCommasTest, tests) {
{
"debuglevel": 99,
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
"output": "stdout",
},

View File

@ -64,7 +64,7 @@
{
// This specifies the logging for Control Agent daemon.
"name": "kea-ctrl-agent",
"output_options": [
"output-options": [
{
// Specifies the output file. There are several special values
// supported:

View File

@ -35,7 +35,7 @@
{
// This specifies the logging for D2 (DHCP-DDNS) daemon.
"name": "kea-dhcp-ddns",
"output_options": [
"output-options": [
{
// Specifies the output file. There are several special values
// supported:

View File

@ -427,7 +427,7 @@
// component. It tells DHCPv4 server to write all log messages (on
// severity INFO or more) to a file.
"name": "kea-dhcp4",
"output_options": [
"output-options": [
{
// Specifies the output file. There are several special values
// supported:

View File

@ -386,7 +386,7 @@
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
// generated by Kea DHCPv6 server.
"name": "kea-dhcp6",
"output_options": [
"output-options": [
{
// Specifies the output file. There are several special values
// supported:

View File

@ -60,7 +60,7 @@
{
// This specifies the logging for Netconf daemon.
"name": "kea-netconf",
"output_options": [
"output-options": [
{
// Specifies the output file. There are several special values
// supported:

View File

@ -92,7 +92,7 @@ dhcp4_config="{
\"loggers\": [
{
\"name\": \"kea-dhcp4\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -131,7 +131,7 @@ dhcp6_config="{
\"loggers\": [
{
\"name\": \"kea-dhcp6\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -154,7 +154,7 @@ dhcp_ddns_config="{
\"loggers\": [
{
\"name\": \"kea-dhcp-ddns\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -173,7 +173,7 @@ control_agent_config="{
\"loggers\": [
{
\"name\": \"kea-ctrl-agent\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}
@ -190,7 +190,7 @@ netconf_config="{
\"loggers\": [
{
\"name\": \"kea-netconf\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -1498,16 +1498,16 @@ namespace isc { namespace netconf {
case 155: // $@29: %empty
#line 680 "netconf_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
ctx.unique("output-options", ctx.loc2pos(yystack_[0].location));
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
#line 1508 "netconf_parser.cc"
break;
case 156: // output_options_list: "output_options" $@29 ":" "[" output_options_list_content "]"
case 156: // output_options_list: "output-options" $@29 ":" "[" output_options_list_content "]"
#line 686 "netconf_parser.yy"
{
ctx.stack_.pop_back();
@ -2221,7 +2221,7 @@ namespace isc { namespace netconf {
"\"control-socket\"", "\"socket-type\"", "\"unix\"", "\"http\"",
"\"stdout\"", "\"socket-name\"", "\"socket-url\"", "\"hooks-libraries\"",
"\"library\"", "\"parameters\"", "\"loggers\"", "\"name\"",
"\"output_options\"", "\"output\"", "\"debuglevel\"", "\"severity\"",
"\"output-options\"", "\"output\"", "\"debuglevel\"", "\"severity\"",
"\"flush\"", "\"maxsize\"", "\"maxver\"", "\"pattern\"", "START_JSON",
"START_NETCONF", "START_SUB_NETCONF", "\"constant string\"",
"\"integer\"", "\"floating point\"", "\"boolean\"", "$accept", "start",

View File

@ -526,7 +526,7 @@ namespace isc { namespace netconf {
TOKEN_PARAMETERS = 286, // "parameters"
TOKEN_LOGGERS = 287, // "loggers"
TOKEN_NAME = 288, // "name"
TOKEN_OUTPUT_OPTIONS = 289, // "output_options"
TOKEN_OUTPUT_OPTIONS = 289, // "output-options"
TOKEN_OUTPUT = 290, // "output"
TOKEN_DEBUGLEVEL = 291, // "debuglevel"
TOKEN_SEVERITY = 292, // "severity"
@ -593,7 +593,7 @@ namespace isc { namespace netconf {
S_PARAMETERS = 31, // "parameters"
S_LOGGERS = 32, // "loggers"
S_NAME = 33, // "name"
S_OUTPUT_OPTIONS = 34, // "output_options"
S_OUTPUT_OPTIONS = 34, // "output-options"
S_OUTPUT = 35, // "output"
S_DEBUGLEVEL = 36, // "debuglevel"
S_SEVERITY = 37, // "severity"

View File

@ -85,7 +85,7 @@ using namespace std;
LOGGERS "loggers"
NAME "name"
OUTPUT_OPTIONS "output_options"
OUTPUT_OPTIONS "output-options"
OUTPUT "output"
DEBUGLEVEL "debuglevel"
SEVERITY "severity"
@ -678,9 +678,9 @@ severity: SEVERITY {
};
output_options_list: OUTPUT_OPTIONS {
ctx.unique("output_options", ctx.loc2pos(@1));
ctx.unique("output-options", ctx.loc2pos(@1));
ElementPtr l(new ListElement(ctx.loc2pos(@1)));
ctx.stack_.back()->set("output_options", l);
ctx.stack_.back()->set("output-options", l);
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
} COLON LSQUARE_BRACKET output_options_list_content RSQUARE_BRACKET {

View File

@ -222,7 +222,7 @@ public:
///< Used while parsing Netconf/loggers structures.
LOGGERS,
///< Used while parsing Netconf/loggers/output_options structures.
///< Used while parsing Netconf/loggers/output-options structures.
OUTPUT_OPTIONS
} LexerContext;

View File

@ -344,12 +344,12 @@ TEST(ParserTest, embbededComments) {
testParser(txt, ParserContext::PARSER_NETCONF, false);
}
// Test that output-options is an alias of output_options.
// Test that output_options is an alias of output-options.
TEST(ParserTest, outputDashOptions) {
string txt= "{ \"Netconf\": {"
" \"loggers\": [ { "
" \"name\": \"kea-netconf\","
" \"output-options\": [ { \"output\": \"stdout\" } ],"
" \"output_options\": [ { \"output\": \"stdout\" } ],"
" \"severity\": \"INFO\" } ]"
"} }";
testParser(txt, ParserContext::PARSER_NETCONF, false);

View File

@ -35,7 +35,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-netconf\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -43,7 +43,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-ctrl-agent\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

View File

@ -32,7 +32,7 @@ CONFIG="{
\"loggers\": [
{
\"name\": \"kea-ctrl-agent\",
\"output_options\": [
\"output-options\": [
{
\"output\": \"$LOG_FILE\"
}

Some files were not shown because too many files have changed in this diff Show More