]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3003] output_options alias for output-options
authorRazvan Becheriu <razvan@isc.org>
Mon, 21 Aug 2023 05:10:45 +0000 (08:10 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 18 Sep 2023 08:08:07 +0000 (08:08 +0000)
111 files changed:
doc/examples/agent/simple.json
doc/examples/ddns/all-keys-netconf.json
doc/examples/ddns/all-keys.json
doc/examples/ddns/sample1.json
doc/examples/kea4/advanced.json
doc/examples/kea4/all-keys-netconf.json
doc/examples/kea4/all-keys.json
doc/examples/kea4/backends.json
doc/examples/kea4/classify.json
doc/examples/kea4/classify2.json
doc/examples/kea4/config-backend.json
doc/examples/kea4/dhcpv4-over-dhcpv6.json
doc/examples/kea4/global-reservations.json
doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
doc/examples/kea4/ha-load-balancing-server2-mt.json
doc/examples/kea4/leases-expiration.json
doc/examples/kea4/multiple-options.json
doc/examples/kea4/mysql-reservations.json
doc/examples/kea4/pgsql-reservations.json
doc/examples/kea4/reservations.json
doc/examples/kea4/several-subnets.json
doc/examples/kea4/single-subnet.json
doc/examples/kea4/with-ddns.json
doc/examples/kea6/advanced.json
doc/examples/kea6/all-keys-netconf.json
doc/examples/kea6/all-keys.json
doc/examples/kea6/backends.json
doc/examples/kea6/classify.json
doc/examples/kea6/classify2.json
doc/examples/kea6/config-backend.json
doc/examples/kea6/dhcpv4-over-dhcpv6.json
doc/examples/kea6/dnr.json
doc/examples/kea6/duid.json
doc/examples/kea6/global-reservations.json
doc/examples/kea6/ha-hot-standby-server1-with-tls.json
doc/examples/kea6/ha-hot-standby-server2.json
doc/examples/kea6/leases-expiration.json
doc/examples/kea6/multiple-options.json
doc/examples/kea6/mysql-reservations.json
doc/examples/kea6/pgsql-reservations.json
doc/examples/kea6/reservations.json
doc/examples/kea6/several-subnets.json
doc/examples/kea6/simple.json
doc/examples/kea6/softwire46.json
doc/examples/kea6/tee-times.json
doc/examples/kea6/with-ddns.json
doc/examples/netconf/kea-dhcp6-operations/netconf.json
doc/examples/netconf/simple-dhcp4.json
doc/examples/netconf/simple-dhcp6.json
doc/examples/template-ha-mt-tls/kea-ca-1.conf
doc/examples/template-ha-mt-tls/kea-ca-2.conf
doc/examples/template-ha-mt-tls/kea-dhcp4-1.conf
doc/examples/template-ha-mt-tls/kea-dhcp4-2.conf
doc/examples/template-power-user-home/kea-ca-1.conf
doc/examples/template-power-user-home/kea-ca-2.conf
doc/examples/template-power-user-home/kea-dhcp4-1.conf
doc/examples/template-power-user-home/kea-dhcp4-2.conf
src/bin/admin/tests/memfile_tests.sh.in
src/bin/agent/agent_parser.cc
src/bin/agent/agent_parser.h
src/bin/agent/agent_parser.yy
src/bin/agent/parser_context.h
src/bin/agent/tests/ca_process_tests.sh.in
src/bin/agent/tests/parser_unittests.cc
src/bin/d2/d2_lexer.cc
src/bin/d2/d2_parser.cc
src/bin/d2/d2_parser.h
src/bin/d2/d2_parser.yy
src/bin/d2/parser_context.h
src/bin/d2/tests/d2_process_tests.sh.in
src/bin/d2/tests/parser_unittest.cc
src/bin/d2/tests/testdata/get_config.json
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.h
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/parser_context.h
src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
src/bin/dhcp4/tests/parser_unittest.cc
src/bin/dhcp6/dhcp6_parser.cc
src/bin/dhcp6/dhcp6_parser.h
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/parser_context.h
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
src/bin/dhcp6/tests/parser_unittest.cc
src/bin/keactrl/kea-ctrl-agent.conf.pre
src/bin/keactrl/kea-dhcp-ddns.conf.pre
src/bin/keactrl/kea-dhcp4.conf.pre
src/bin/keactrl/kea-dhcp6.conf.pre
src/bin/keactrl/kea-netconf.conf.pre
src/bin/keactrl/tests/keactrl_tests.sh.in
src/bin/netconf/netconf_parser.cc
src/bin/netconf/netconf_parser.h
src/bin/netconf/netconf_parser.yy
src/bin/netconf/parser_context.h
src/bin/netconf/tests/parser_unittests.cc
src/bin/netconf/tests/shtests/netconf_tests.sh.in
src/bin/shell/tests/basic_auth_tests.sh.in
src/bin/shell/tests/shell_process_tests.sh.in
src/bin/shell/tests/tls_ca_process_tests.sh.in
src/lib/process/log_parser.cc
src/lib/process/log_parser.h
src/lib/process/logging_info.cc
src/lib/process/logging_info.h
src/lib/process/tests/daemon_unittest.cc
src/lib/process/tests/log_parser_unittests.cc
src/lib/process/tests/logging_info_unittests.cc
src/lib/yang/tests/translator_logger_unittests.cc
src/lib/yang/translator_logger.cc
src/lib/yang/translator_logger.h

index a7227de04f6f8fc218be8a306809b43a0172df96..5e82b99530bd217d154358e986148364d8dec87e 100644 (file)
         "loggers": [
             {
                 "name": "kea-ctrl-agent",
-                "output_options": [
+                "output-options": [
                     {
                         "output": "/var/log/kea-ctrl-agent.log",
                         // Several additional parameters are possible in addition
index 2ea6fad859ae055470ba3031902525936a501fa7..642258dc35d30ec46c5bbb739fcbb233027410b1 100644 (file)
             "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,
index 674c9860cf811e814a6aafef527ca282de05d454..6907d178fe669f4549a33b3632dd980da9336fd7 100644 (file)
             "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,
index 7ff4960c9aefaba43c188d341b0130c82c94bb68..4c8190ea036706ef60d66975dc7e2529301f7880 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp-ddns",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout",
                     // Several additional parameters are possible in addition
index 9191226aaf32914a4fa0fdf3ca4adc1e24bf9dec..16a949831f89b7e126bd59a198ac215d55d2f242 100644 (file)
     "loggers": [
           {
             "name": "kea-dhcp4",
-              "output_options": [
+              "output-options": [
                   {
                       "output": "stdout",
                       // Several additional parameters are possible in addition
index 022eb0f21429f544fe965b9844e3144a46f86ee3..c5cf9036f4ea06495f5bf13002f673a1b9f526db 100644 (file)
                 "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,
index db647dcbcd574cf6a4f87b6c4a9a325c0387ac39..4334c25eb886249e1bd5d0245e5d43b561a62e64 100644 (file)
                 "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,
index d8e037bdae87e0e75ce73fd132b42dff04f4c1ff..e7c1a48b3b4fb9616de27f00d21a471ed745f6ec 100644 (file)
@@ -92,7 +92,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 47bbdcbc1bcb2805462bd569c358f921bcc1a29a..9af06d837755c71e6548c21d40546c84e2162e78 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index ec9d58b7ff6a0ea34eef2ec465b5ca6ea7abcb3d..3bb48d20b2e598f8228da833ada1421c519e6c68 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 272243a1ffc1bede50c32568d25737ff49bdd8bb..82d36fb041df27bc6fdcd034904ae433c0095f4b 100644 (file)
@@ -78,7 +78,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index a2b3d43fb8e6cb232e60fe3760d09c98bb464ea4..c622c4225e43e08670d8090b967971e0cf48d898 100644 (file)
@@ -34,7 +34,7 @@
   "loggers": [
     {
       "name": "kea-dhcp4",
-      "output_options": [
+      "output-options": [
           {
             "output": "/tmp/kea-dhcp4.log"
           }
index 8171eb50cf8a5951c4dd743b028f0d42ffc1a79d..37cba508f589e73373cc97849328a9cc9f9f214b 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 5e6802647c93f29fce52b42129be32db4e092393..91912169f001c6a08f3baabff18a7818d6c85b08 100644 (file)
             // 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"
                 }
             // This section specifies configuration of the HA hook library-specific
             // logger.
             "name": "kea-dhcp4.ha-hooks",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index ddfadb0cfdc04dfecdff6bdbe954a47a6159bcc7..ab31cfa6922578d4f5f22c7adb991e83f0678b49 100644 (file)
             // 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"
                 }
             // This section specifies configuration of the HA hook library-specific
             // logger.
             "name": "kea-dhcp4.ha-hooks",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 629b12654bdf395e2f27e8bdaed4f35660b12e3e..427eb40061b0e5c3712d84ef61d69a6ffd87efe2 100644 (file)
@@ -63,7 +63,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 8252d503b88991d899cf4192578410dbffc02306..d8495b00c786e207d486a13ab22869c58b862cea 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index c44c463542c7da2a703275f27175a9b95916aae7..e8c0c22e1aecc8a3ccb3507a2358b0ce38259d88 100644 (file)
@@ -90,7 +90,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 7d9bd669ba7ca42e7f14e3accbdd896ed73c653f..6941fd00b94e9a9d373ad5d214b5c2c4ae28b16b 100644 (file)
@@ -88,7 +88,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 58070bf3b4c005033e1269c1be1462a187da4a1e..da44c1b4bc0e572588b5064362b032e7b67deaf9 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index bcdf3a70ee3043f4bee4db278ddfdbfb1bfe21c2..6a9e1f557fd49d14d9eb30ff9a3ba195b717740f 100644 (file)
@@ -73,7 +73,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 49457fecb0b83e2b214b7a04e2b70978ed2e1bf6..4a2880ba1b32ddb6a8dfc5a710c257b286760d9d 100644 (file)
@@ -47,7 +47,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 9d06cd3bf42249f11e4d54deffab02e707ac6e28..f479c577152ef077fbbda4d10f5518cd475e8e3c 100644 (file)
@@ -72,7 +72,7 @@
     "loggers": [
         {
             "name": "kea-dhcp4",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 995f6937155e5b1d06b401b3a0dc437c89a02d6a..02ff310f9cbeceb6f363108eb6a7b17a4d73b6a4 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout",
                     // Several additional parameters are possible in addition
index 4d8a1b04a877366ead9920d654e5f8395b157706..e9254aa04d4f0254cb9e5cf407092727b8bf3341 100644 (file)
                 "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,
index 82fa9c81ab8b6abac0908290f64fbdb1e47c5ea3..fac0218af58c315963355a4926c9994e7cb24ff1 100644 (file)
                 "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,
index 52ed3ec599d776c731bf8da3f208f5c32d1927be..df1072cfb14c2eb19af0e66868f85ca0e93ce128 100644 (file)
@@ -93,7 +93,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 796926c683367db371e2a5632f7777ddbd1afe8f..41c2a2d9f3417200cd6489d9a7308e0c2a891967 100644 (file)
@@ -99,7 +99,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index ffdf32d808a19fb8b4f4a077d037f48bf28824a0..78542f48ad1c97d221f3a13ad0b7c5e01b541a46 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 4793ee2e0d8624355c04cdfa1f8da9ffcf8dbd41..d269f3f120c98dfbd78725e1af48c90a052901fe 100644 (file)
@@ -78,7 +78,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index f09a18c50b20f6f58041d97cfc8c299dccaf11b3..56e371e3ceeb921b53c213f4d70740ab3f3e26d9 100644 (file)
@@ -44,7 +44,7 @@
   "loggers": [
     {
       "name": "kea-dhcp6",
-      "output_options": [
+      "output-options": [
           {
             "output": "/tmp/kea-dhcp6.log"
           }
index e902f5f20946793fc9714bd9328881ffc04bf95f..48893f765d91ef7530d8b510890479308623d06e 100644 (file)
@@ -73,7 +73,7 @@
     "loggers": [
       {
         "name": "kea-dhcp6",
-        "output_options": [
+        "output-options": [
           {
             "output": "stdout"
           }
index 0bc3753d119601589a7bdad7d8b42335be257945..223d4c30212956902afb36646718de478e409973 100644 (file)
@@ -66,7 +66,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 59cc873cd43c9e3ea0720d7479eb527886f5324f..b98b3e0ede20c18b59253ec9734c2f7769592718 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 3a586f9c162e94d5ab44e3824d717f4218bec4d9..9fab5429c932d2e6d5476be139e642e76b9686e7 100644 (file)
             // 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"
                 }
             // This section specifies configuration of the HA hook library-specific
             // logger.
             "name": "kea-dhcp6.ha-hooks",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 43c751bf12075c5294362c7eb0603f4f71f8898a..6a9a680ed9d1199846fc368c83f5fb836dcc0d21 100644 (file)
             // 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"
                 }
             // This section specifies configuration of the HA hook library-specific
             // logger.
             "name": "kea-dhcp6.ha-hooks",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 46a410ff3a1c51ab5b37eb9349a416189651e067..d70b7631a9fb663a8c774ff6bbde3036201ed57f 100644 (file)
@@ -71,7 +71,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index eae1d8e74ba8df9d34ac5792bbc74adabb24be5d..03d83fea68844be844bb57c85206504b4acce21c 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 74beb2c631860b22da75ca436df76c73fe164cb2..cc1acc3c699e2c1427054622b2d1a9ac4755eb54 100644 (file)
@@ -87,7 +87,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 6c610196504ebf00d19d1fabf21260c009393192..6da8d150d61da98d8364e93d5148e7bef2f8c31f 100644 (file)
@@ -84,7 +84,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 95a0e9df1b8843742ac8741698927b96c941aee2..c793cb8c42000e950ffced7a2e21c7e03dc2e8e3 100644 (file)
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index b32b56a3aaf2b52245a29d65525425d3296453dc..063ddb44101a8e78d9f3c4afdd4945952ac04201 100644 (file)
@@ -47,7 +47,7 @@
   "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 06e51e93bfcd950655a7a4184af0a71139ba86fc..3b6d3d518f046b0fc49db57e5ae19a260f97e289 100644 (file)
@@ -49,7 +49,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index e04821f22f53a8f21a07ea6b848ae632b846718a..bbc810c599bbcf13d84a025fdfff0e672e76b008 100644 (file)
@@ -76,7 +76,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "/var/log/kea-debug.log"
                 }
index 5db9c98d5727b3e999db177073c5999171791b1a..e69cc09e86affb971bd9e36dedc72d00f370e0d3 100644 (file)
@@ -59,7 +59,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index cbddfc64bee84cf57a5d79fb27ca47594d672ca9..4f2de1f5acbda8af2a07811164d59e56e26b14cc 100644 (file)
@@ -75,7 +75,7 @@
     "loggers": [
         {
             "name": "kea-dhcp6",
-            "output_options": [
+            "output-options": [
                 {
                     "output": "stdout"
                 }
index 1a8cd2113a11ad29cd53f214415e864fa24e0119..653a40c7eb21b926779e344f205447565ed12593 100644 (file)
@@ -17,7 +17,7 @@
         [
             {
                 "name": "kea-netconf",
-                "output_options":
+                "output-options":
                 [
                     {
                         "output": "stderr"
index 309badf862d60b0098186ca1e1cb7d075dce83b7..887c673065fb6eb35ea05d9511aacf6d7cc3f494 100644 (file)
@@ -90,7 +90,7 @@
         "loggers": [
             {
                 "name": "kea-netconf",
-                "output_options": [
+                "output-options": [
                     {
                         // "output": "/var/log/kea-netconf.log",
                         "output": "stdout",
index 91e57bece3f926f2882c18ac255644808040299d..1829a44a2b2d0decc0907c0c0ce0c505fcd6373e 100644 (file)
@@ -91,7 +91,7 @@
         "loggers": [
             {
                 "name": "kea-netconf",
-                "output_options": [
+                "output-options": [
                     {
                         // "output": "/var/log/kea-netconf.log",
                         "output": "stdout",
index cec984bff5462b8d0cd1dd007e94e95d42526752..765dd9cc218e2c57eb1998565af81170c328da4e 100644 (file)
@@ -65,7 +65,7 @@
         "loggers": [
             {
                 "name": "kea-ctrl-agent",
-                "output_options": [
+                "output-options": [
                     {
                         "output": "/var/log/kea-ctrl-agent.log",
 
index 3835a49f48fffca01516ea5ff9ba93f436c0cde1..72eb73b1b11014f37372f19741baf4c3313d31c2 100644 (file)
@@ -65,7 +65,7 @@
         "loggers": [
             {
                 "name": "kea-ctrl-agent",
-                "output_options": [
+                "output-options": [
                     {
                         "output": "/var/log/kea-ctrl-agent.log",
 
index 5b4ae2fa1f0a63f33b2147843a3c9b4a5479d961..0dc11983e55442a9d4c0b015c6d61d07811a19c9 100644 (file)
         // 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,
index f1b48ae4be9603590411f1c705c2852e72ac4e77..070569b2a762a4e185665d2cc69694b65888819b 100644 (file)
         // 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,
index 04945c8a3ee50c79534430001fe922e192d50591..9139008794491a218228e6f71fc3fb28ad004cb8 100644 (file)
@@ -41,7 +41,7 @@
         "loggers": [
             {
                 "name": "kea-ctrl-agent",
-                "output_options": [
+                "output-options": [
                     {
                         "output": "/var/log/kea-ctrl-agent.log",
 
index c876012aff336115fa62026e5cecc3b79f8f4f65..f36c850abac72a656d33c4cdf14fcf350f8c75e0 100644 (file)
@@ -41,7 +41,7 @@
         "loggers": [
             {
                 "name": "kea-ctrl-agent",
-                "output_options": [
+                "output-options": [
                     {
                         "output": "/var/log/kea-ctrl-agent.log",
 
index 48b8c2eb86324d7be49268249da5b8c1c017a1fb..d4a9d705609c3ce0706ea15dadaeda9608fc96fb 100644 (file)
         // 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,
index 29d8f4ca060c2012f8f6b0dc42e2e51b174f85ab..f75a99775e33eda0d40258691a3f02b6114bc550 100644 (file)
         // 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,
index 9a71b87a166a733d3fffbbb8d2978c32c2b70a94..ad10109d5f236c47e1a3f593473272ba7de026ba 100644 (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"
           }
index 9ec41583bfc824c66a6ca2b385718caad1599380..d3090edcb237f529acccc5276dfeda461c917835 100644 (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",
index 55e0573ea3c6badc82cd49b6e1674004aa42cd1f..5612faaa1c3479c15aeb4f83b4db325af75b3887 100644 (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"
index 39a1a737fcd15330851e510323c2a86f0c776088..8531a7fa9b5ee3cf4962ae1446796635101f2ef2 100644 (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 {
index a6816d713e7efe69bf4e9ee60a7b97097419f23d..fbc502a20cf1c1506d9fc163c88a49a293a7fc6b 100644 (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;
 
index b5331523ec86a841e2101afd05dfb846c8a9807e..0aa2f11e3f57734e409187bfc23cac08bd7309f1 100644 (file)
@@ -32,7 +32,7 @@ CONFIG="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"$LOG_FILE\"
                 }
index dfbc14d7dfcb550357b1011042e4bd9d68a5f63d..166d6f99aa0906997e74a7647b1e6c2839910634 100644 (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",
           },
index 750b90492fc115f31960d07355fae94af5b077bd..f56c4c955b514f872821471efcaa0fbb96a32f4f 100644 (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:
                {
index 10bd6b2c862c8dbca0aadf5b97c540eafaf73359..91ba8048fe4e0faf1d6a20c46e3dcec73d17d79c 100644 (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",
index 352e62f6cc6ce60a014ac3153166b498aa36eb36..c729ccd8f52e99ce8c6f921d9d97ac2b74baeab1 100644 (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"
index d8a0aaad2a59bd7dccc5340eff1d3fdd366a86b9..d3185de2d6d0645dcecf65c421a21613f0e30b2d 100644 (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 {
index e838ffde165f1c07f1b5eaeaa3325ca7b20bae28..c7eb59f8be14b3e3036dbcb964ba8e903c71a37f 100644 (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
index 895b9a2d921bdbd5f3211fc5842519d635162c3f..3a4dad432ea6eaddabe7af71c4c214d10fd37a49 100644 (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\"
                 }
index 9f741654e7fc8b78584d7ff9138df0efad1ac3e5..7190fbdd1b587284f3b11fba02798af26ecf38bc 100644 (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"
           },
index d9613a3610c10ef4443aa23bd8698f13b44d12e4..1eb04243571dc281325554a3ee73a3fc684f966c 100644 (file)
@@ -46,7 +46,7 @@
             {
                 "debuglevel": 0,
                 "name": "kea-dhcp-ddns",
-                "output_options": [
+                "output-options": [
                     {
                         "flush": true,
                         "output": "stdout",
index 2b20e340b178927e2555f074ee56deb38b936fca..0d79fb0841dd11b1ff152ce0a2931dc57db18759 100644 (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\"",
index 93dc2948a3de5480d249084735ede67d76ee4653..97b6230626c8b6e9d1708c4ce936a2ae310df9b5 100644 (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"
index 5d3f500b1bd781ebee6540ec712c21c5c41b10a4..bd5393f6f9b97e80d9e53a032141a3a095a90140 100644 (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 {
index 1ed11d2ab3edb9f86991c3989b729d21784c789a..404e586e1e020a78fd4f31bc5921a6a13834a9df 100644 (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.
index 88d685f3e67bc5be4702cd441a6b0d2db0c06520..e9fdcc072eb4bbca1f72c5b132ad11e690e392a2 100644 (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";
index 76e7177094f6d3c159dd3616f840faad7d62390b..10243ede225316a8ad0946667107b999f8db423b 100644 (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\"
                 }
index fa304086935ce54047849932d5480d77d58170f3..48c92783cd115f11e56da9e0ef4b013e1f6e6fc2 100644 (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",
           },
index 546d2fea78255bf7241c8273d6a6be8440e2a3ee..23814f78871750b104da8b412a8cc6dd4d7e1fd0 100644 (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",
index abc8f39de34034471371eb166fd1c2cd7dd79bf9..dfffdfe4257d2a5c8974d5af9d102afdb66386b6 100644 (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"
index 12fa254c4f0b37baa67214892c41c2d4e0e17f08..d1b0bb5b6bdc8b08fd85cd84edd6846e7f3c22e9 100644 (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 {
index 42cb464feba4556bc5fc8532281b71e9ec6e43cf..ff6e9d963560d661167d3fae7634e443be66b584 100644 (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.
index fa6d6e549b14ad56241880bb632e52e487a4ddbc..0b981e86f3539cda9f6c6872ed8997f17e6728d0 100644 (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";
index 085728793714beb35337ba1b593efc039fa94437..afed5211a6ec3752595cb64950785d88e1bc07fa 100644 (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\"
                 }
index ddeea949cf5580bd517593f24a1b96c2f31d60f1..d7f45f52194fbcc1e4996d35cc0002c579963435 100644 (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",
           },
index e6ae8b8ac6701ddbfbb402898e55ffa19222d7ad..d8e04296cef7bc60a903b5f8272d50ea848c64a2 100644 (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:
index 07c204283aadd100ae4f73478cf138d7ee2c393d..b75b51f390ce7faf49d741c821acb80ae84bc224 100644 (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:
index 6edb8a14c70d319688ea0a3afbb45c249425ca0e..55af9dbf61e59f73bc02bd4090a74e5bf3a461a9 100644 (file)
         // 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:
index b167e1ffe0282df92753f54a830b3525798c2255..271021b2f86375a6533455811dceb774a0bfedde 100644 (file)
         // 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:
index 37d15b14a1d816778af2bf5dadd8980b5f4d625a..c8a3878b414f27db64e112f8ee720b850aab3b45 100644 (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:
index b4b49cb625c5f20f7ca45ce94350118f273cbe60..da2aa775c6ade20ea708f8111fc239828285948a 100644 (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\"
                 }
index bb96708f25dc35c4c438f54c86e074e4f7b54113..ff6536d6e7849879a5db018dabc212e0edd4bf95 100644 (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",
index 54266fac8e5b658906a3269d5375dafb4eefa520..584ba5a62ab3e05dd869d26c20de4f13c4ea6e19 100644 (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"
index db3e79a534cb7c67dac19664aadcf6d081c0afcb..eb2ec7bb636fcdead2d8dcb0857203bde7d2588e 100644 (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 {
index cb62152ab453e7ff4d92ecf992662620d34c3b8f..68a8b6078d75ffdb1b22801bedab318e05e8971b 100644 (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;
index 504c4f208fbd4ec1c078cb22baf4c1f8738cc16f..d4ef6c1d357ebe634478fb7b9a122885e6f5905b 100644 (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);
index b6ba61122325b2867c4a217fd75302bb33e7dee6..df8196e7059eb4172bbc830c9bef4da90e546f81 100644 (file)
@@ -35,7 +35,7 @@ CONFIG="{
         \"loggers\": [
         {
             \"name\": \"kea-netconf\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"$LOG_FILE\"
                 }
index 36ea16c2fcb2e7b7968a72516626a58fe917a06f..0d8b2b8c9d42dceb8771990fdd94a1b5bf854e46 100644 (file)
@@ -43,7 +43,7 @@ CONFIG="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"$LOG_FILE\"
                 }
index 5f2e00a14963523bff3535f7b7da50a0a2e82bba..514bb2797bf58bc53c4dcec52eff595f5f018957 100644 (file)
@@ -32,7 +32,7 @@ CONFIG="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"$LOG_FILE\"
                 }
index 2c23188c081623b4174c8f82cb302843d430bddb..e8937b8d12769928d42cc5447f05bd2ab01c0cda 100644 (file)
@@ -37,7 +37,7 @@ CONFIG_NONE="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"${LOG_FILE}\"
                 }
@@ -61,7 +61,7 @@ CONFIG_NOCR="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"${LOG_FILE}\"
                 }
@@ -85,7 +85,7 @@ CONFIG="{
         \"loggers\": [
         {
             \"name\": \"kea-ctrl-agent\",
-            \"output_options\": [
+            \"output-options\": [
                 {
                     \"output\": \"${LOG_FILE}\"
                 }
index 258aa4eaf55fd17ca1a3be07ede9fc2b9811e7e0..ef410bba14ed3f91adccdab38a8e29df7d256454 100644 (file)
@@ -104,7 +104,7 @@ void LogConfigParser::parseConfigEntry(isc::data::ConstElementPtr entry) {
         info.debuglevel_ = 99;
     }
 
-    isc::data::ConstElementPtr output_options = entry->get("output_options");
+    isc::data::ConstElementPtr output_options = entry->get("output-options");
 
     if (output_options) {
         parseOutputOptions(info.destinations_, output_options);
@@ -116,7 +116,7 @@ void LogConfigParser::parseConfigEntry(isc::data::ConstElementPtr entry) {
 void LogConfigParser::parseOutputOptions(std::vector<LoggingDestination>& destination,
                                          isc::data::ConstElementPtr output_options) {
     if (!output_options) {
-        isc_throw(BadValue, "Missing 'output_options' structure in 'loggers'");
+        isc_throw(BadValue, "Missing 'output-options' structure in 'loggers'");
     }
 
     BOOST_FOREACH(ConstElementPtr output_option, output_options->listValue()) {
@@ -125,7 +125,7 @@ void LogConfigParser::parseOutputOptions(std::vector<LoggingDestination>& destin
 
         isc::data::ConstElementPtr output = output_option->get("output");
         if (!output) {
-            isc_throw(BadValue, "output_options entry does not have a mandatory 'output' "
+            isc_throw(BadValue, "output-options entry does not have a mandatory 'output' "
                       "element (" << output_option->getPosition() << ")");
         }
         dest.output_ = output->stringValue();
index 92209bd17fec2f7f5ffb79e211b56290c589bfc4..899a613149c58bb7f67bfcb5c1f74406ae3b2cb4 100644 (file)
@@ -23,7 +23,7 @@ namespace process {
 /// The data structures converted to JSON format have the following syntax:
 /// {
 ///     "name": "kea",
-///     "output_options": [
+///     "output-options": [
 ///         {
 ///             "output": "/home/thomson/kea-inst/kea-warn.log",
 ///             "maxver": 8,
@@ -66,7 +66,7 @@ private:
     /// @brief parses one structure in Server/loggers.
     void parseConfigEntry(isc::data::ConstElementPtr entry);
 
-    /// @brief Parses output_options structure
+    /// @brief Parses output-options structure
     ///
     /// @ref @c LogConfigParser for an example in JSON format.
     ///
index a32119d39df9d259fe0c80cdbd5d563685b24f32..10a4d3b0c956481c2e3c235e21395553ec733679 100644 (file)
@@ -168,13 +168,13 @@ LoggingInfo::toElement() const {
     contextToElement(result);
     // Set name
     result->set("name", Element::create(name_));
-    // Set output_options if not empty
+    // Set output-options if not empty
     if (!destinations_.empty()) {
         ElementPtr options = Element::createList();
         for (auto const& dest : destinations_) {
             options->add(dest.toElement());
         }
-        result->set("output_options", options);
+        result->set("output-options", options);
     }
     // Set severity
     std::string severity;
index 7660fe0a641f25f08aba33b5e67370f6e6a9a91e..0617d998db889d742e77e9953f65b80d1f97d74e 100644 (file)
@@ -66,7 +66,7 @@ public:
 /// The structure in JSON form has the following syntax:
 ///        {
 ///            "name": "*",
-///            "output_options": [
+///            "output-options": [
 ///                {
 ///                    "output": "/path/to/the/logfile.log",
 ///                    "maxver": 8,
index bd80e25a656fad7a7eef0d3e2b6d3515c6bccfc6..791b55b002d38e4d884107e5cf70471c2c09856d 100644 (file)
@@ -283,7 +283,7 @@ TEST_F(DaemonTest, parsingConsoleOutput) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"stdout\""
     "            }"
index 0341dd7b2bb0d23243727900e5b1c78684ef7fc2..43c30541d7ae4c5298cf3e7d0ec047da650d07f2 100644 (file)
@@ -98,7 +98,7 @@ TEST_F(LoggingTest, parsingConsoleOutput) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"stdout\","
     "                \"flush\": true"
@@ -140,7 +140,7 @@ TEST_F(LoggingTest, parsingNoSeverity) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"stdout\","
     "                \"flush\": true"
@@ -188,7 +188,7 @@ TEST_F(LoggingTest, parsingFile) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"logfile.txt\""
     "            }"
@@ -233,7 +233,7 @@ TEST_F(LoggingTest, multipleLoggers) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"logfile.txt\","
     "                \"flush\": true"
@@ -243,7 +243,7 @@ TEST_F(LoggingTest, multipleLoggers) {
     "    },"
     "    {"
     "        \"name\": \"wombat\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"logfile2.txt\","
     "                \"flush\": false"
@@ -292,7 +292,7 @@ TEST_F(LoggingTest, multipleLoggingDestinations) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"logfile.txt\""
     "            },"
@@ -341,7 +341,7 @@ TEST_F(LoggingTest, logRotate) {
         "{ \"loggers\": ["
         "    {"
         "        \"name\": \"kea\","
-        "        \"output_options\": ["
+        "        \"output-options\": ["
         "            {"
         "                \"output\": \""
         << TEST_LOG_NAME << "\","  <<
@@ -399,7 +399,7 @@ TEST_F(LoggingTest, validPattern) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"stdout\","
     "                \"pattern\": \"mylog %m\\n\""
@@ -438,7 +438,7 @@ TEST_F(LoggingTest, emptyPattern) {
     "{ \"loggers\": ["
     "    {"
     "        \"name\": \"kea\","
-    "        \"output_options\": ["
+    "        \"output-options\": ["
     "            {"
     "                \"output\": \"stdout\","
     "                \"pattern\": \"\""
@@ -478,7 +478,7 @@ void testMaxSize(uint64_t maxsize_candidate, uint64_t expected_maxsize) {
 
           "debuglevel": 99,
           "name": "kea",
-          "output_options": [
+          "output-options": [
             {
               "output": "kea.test.log",
               "flush": true,
index 388a8a57eef5bfe36934eb0b1c84f9b9c70f985e..1e19ec5608497dcc020ff2a75b5e84b8aea3c7de 100644 (file)
@@ -89,7 +89,7 @@ TEST_F(LoggingInfoTest, defaults) {
     std::string header = "{\n";
     std::string begin =
         "\"name\": \"kea\",\n"
-        "\"output_options\": [ {\n"
+        "\"output-options\": [ {\n"
         " \"output\": \"stdout\", \"flush\": true, \"pattern\": \"\" } ],\n"
         "\"severity\": \"";
     std::string dbglvl = "\",\n\"debuglevel\": ";
index 365e4bd47431cac4f3fcc98370c4b7553532fc45..469df79469af559630fb71ae5d71be069401563a 100644 (file)
@@ -85,7 +85,7 @@ TEST_F(TranslatorLoggersTestv6, get) {
     ASSERT_TRUE(severity);
     ASSERT_EQ(Element::string, severity->getType());
     EXPECT_EQ("WARN", severity->stringValue());
-    ConstElementPtr options = logger->get("output_options");
+    ConstElementPtr options = logger->get("output-options");
     ASSERT_TRUE(options);
     ASSERT_EQ(1, options->size());
     ConstElementPtr option = options->get(0);
@@ -114,7 +114,7 @@ TEST_F(TranslatorLoggersTestv4, set) {
     ElementPtr logger = Element::createMap();
     logger->set("name", Element::create("foo"));
     logger->set("severity", Element::create("WARN"));
-    logger->set("output_options", options);
+    logger->set("output-options", options);
     ElementPtr loggers = Element::createList();
     loggers->add(logger);
     ASSERT_NO_THROW_LOG(translator_->setLoggers(xpath, loggers));
@@ -135,7 +135,7 @@ TEST_F(TranslatorLoggersTestv4, set) {
     ASSERT_TRUE(severity);
     ASSERT_EQ(Element::string, severity->getType());
     EXPECT_EQ("WARN", severity->stringValue());
-    ConstElementPtr got_os = logger->get("output_options");
+    ConstElementPtr got_os = logger->get("output-options");
     ASSERT_TRUE(got_os);
     ASSERT_EQ(1, got_os->size());
     ConstElementPtr got_o = got_os->get(0);
index bff43db77d60f3e71052bf27a8401e16e5cbc17a..d2d8994b9186b8736364871a5687890f2b27cab8 100644 (file)
@@ -53,7 +53,7 @@ TranslatorLogger::getLoggerKea(DataNode const& data_node) {
 
     ConstElementPtr options = getOutputOptions(data_node);
     if (options) {
-        result->set("output_options", options);
+        result->set("output-options", options);
     }
 
     return (result->empty() ? ElementPtr() : result);
@@ -106,7 +106,7 @@ TranslatorLogger::setLoggerKea(string const& xpath, ConstElementPtr elem) {
     checkAndSetLeaf(elem, xpath, "severity", LeafBaseType::Enum);
     checkAndSetUserContext(elem, xpath);
 
-    ConstElementPtr options = elem->get("output_options");
+    ConstElementPtr options = elem->get("output-options");
     if (options && !options->empty()) {
         setOutputOptions(xpath, options);
     }
index 6d54dc4b25b19f783dc2ba3b9421397cc6ba6a17..cc58dc9d012afea605ee46095ab1a3efccee3c9b 100644 (file)
@@ -18,7 +18,7 @@ namespace yang {
 /// @code
 /// {
 ///     "name": <name>,
-///     "output_options": [ <output options> ],
+///     "output-options": [ <output options> ],
 ///     "severity": <severity>,
 ///     "debuglevel": <debug level>,
 ///     "user-context": { <json map> },
@@ -58,7 +58,7 @@ namespace yang {
 ///     {
 ///         "name": "foo",
 ///         "severity": "WARN",
-///         "output_options":
+///         "output-options":
 ///             [
 ///                 {
 ///                     "output": "/bar",