]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#10,!3] Fixing minor mistakes
authorTomek Mrugalski <tomasz@isc.org>
Thu, 4 Oct 2018 20:56:08 +0000 (22:56 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 29 Oct 2019 17:57:13 +0000 (18:57 +0100)
     - 80% were simple trailing commas
     - one or two typos
     - our parser doesn't like escaped single quote. it's a bug in our
       parser code, but until it is fixed, I've removed the escapes.
       \' => '

41 files changed:
doc/api/cache-insert.json
doc/api/cache-load.json
doc/api/cache-remove.json
doc/api/config-reload.json
doc/api/config-set.json
doc/api/config-test.json
doc/api/config-write.json
doc/api/dhcp-disable.json
doc/api/dhcp-enable.json
doc/api/lease4-add.json
doc/api/lease4-del.json
doc/api/lease4-get-all.json
doc/api/lease4-get.json
doc/api/lease4-update.json
doc/api/lease4-wipe.json
doc/api/lease6-add.json
doc/api/lease6-del.json
doc/api/lease6-update.json
doc/api/lease6-wipe.json
doc/api/leases-reclaim.json
doc/api/libreload.json
doc/api/list-commands.json
doc/api/network4-add.json
doc/api/network4-del.json
doc/api/network4-get.json
doc/api/network4-list.json
doc/api/network4-subnet-add.json
doc/api/network4-subnet-del.json
doc/api/network6-add.json
doc/api/network6-del.json
doc/api/network6-get.json
doc/api/network6-list.json
doc/api/network6-subnet-add.json
doc/api/network6-subnet-del.json
doc/api/shutdown.json
doc/api/stat-lease4-get.json
doc/api/stat-lease6-get.json
doc/api/statistic-get-all.json
doc/api/statistic-get.json
doc/api/statistic-remove-all.json
doc/api/statistic-remove.json

index 3daa0cd840c3b476cdc31e874f529d85700c6d3f..e872c9ae045c1df6121e415129585727edfcae96 100644 (file)
@@ -17,7 +17,7 @@
         \"client-classes6\": [ ],
         \"option-data4\": [ ],
         \"option-data6\": [ ],
-        \"next-server\": "192.0.0.2",
+        \"next-server\": \"192.0.0.2\",
         \"server-hostname\": \"server-hostname.example.org\",
         \"boot-file-name\": \"bootfile.efi\",
         \"host-id\": 0
         \"client-classes6\": [ ],
         \"option-data4\": [ ],
         \"option-data6\": [ ],
-        \"next-server\": "0.0.0.0",
+        \"next-server\": \"0.0.0.0\",
         \"server-hostname\": \"\",
         \"boot-file-name\": \"\",
         \"host-id\": 0
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 2ccfca29c36c16390386ae6f45486ce0d32f4429..582dc11b8682e67cdc579e4901197dfa7f29f533 100644 (file)
@@ -8,5 +8,5 @@
     "cmd-syntax": "{
     \"command\": \"cache-load\",
     \"arguments\": \"/tmp/kea-host-cache.json\"
-}",
+}"
 }
index c52490b74da3cf93112573e5be2f802efdc62622..cde6b4d89d48d78720a46cf36e78ff018135d988 100644 (file)
@@ -18,5 +18,5 @@
         \"duid\": \"00:01:ab:cd:f0:a1:c2:d3:e4\",
         \"subnet-id\": 123
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 74898effdba2cd90ed7eaaa91c74f40f568ebe11..8104db373e1b68147ef779e2a352bf9325232d5f 100644 (file)
@@ -6,5 +6,5 @@
     "avail": "1.2.0",
     "cmd-syntax": "{
     \"command\": \"config-reload\"
-}",
+}"
 }
index 45284737f186826ea77363a822ad769750c0054e..dd39e941320517d327f4a5a67b4ec0f5696187a0 100644 (file)
@@ -18,5 +18,5 @@
 
     or
 
-    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }",
-}
\ No newline at end of file
+    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }"
+}
index dd4632b9cf0abd97c08a50bcea255867e3d70f91..079c6d942eadedb3153deae221857e57465d745b 100644 (file)
@@ -18,5 +18,5 @@
 
     or
 
-    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }",
-}
\ No newline at end of file
+    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }"
+}
index d15cfb997de058be3e26fe3699a80451a7934819..b998e866c6b742ae3271813e556bb072ec825064 100644 (file)
@@ -7,7 +7,7 @@
     "cmd-syntax": "{
     \"command\": \"config-write\",
     \"arguments\": {
-        \"filename": \"config-modified-2017-03-15.json\"
+        \"filename\": \"config-modified-2017-03-15.json\"
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 44b028cf3ce02bb308d8437f7f6811ebbb864f38..80baa6b2b97722a0cde9a93980e253c14eb0d3b8 100644 (file)
@@ -9,5 +9,5 @@
     \"arguments\": {
         \"max-period\": 20
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 6b90c397b084d72ba5d14a9899b16b0cc630ac0a..a945b931f4523639ec4ca800ec7504807df24b0f 100644 (file)
@@ -6,5 +6,5 @@
     "avail": "1.4.0",
     "cmd-syntax": "{
     \"command\": \"dhcp-enable\"
-}",
-}
\ No newline at end of file
+}"
+}
index 35757f654190036413e06a8ba389072dda5c022e..1a2b21280efa449db4e609e947ee396b7d2d2cd8 100644 (file)
@@ -11,5 +11,5 @@
         \"ip-address\": \"192.0.2.202\",
         \"hw-address\": \"1a:1b:1c:1d:1e:1f\"
     }
-}",
-}
\ No newline at end of file
+}"
+}
index f1799533ce623395b860f0d3ea09a2316c4a07b1..274f5664fbf4f44dd154cf3d49677e01326e5191 100644 (file)
@@ -11,5 +11,5 @@
         \"ip-address\": \"192.0.2.202\"
     }
 }",
-    "cmd-comment": "leaseX-del returns a result that indicates a outcome of the operation. It has one of the following values: 0 (success), 1 (error) or 3 (empty). The empty result means that a query has been completed properly, but the object (a lease in this case) has not been found.",
-}
\ No newline at end of file
+    "cmd-comment": "leaseX-del returns a result that indicates a outcome of the operation. It has one of the following values: 0 (success), 1 (error) or 3 (empty). The empty result means that a query has been completed properly, but the object (a lease in this case) has not been found."
+}
index a52b765a7b157eadf68215fa4df230d1c6f65144..f8a60b8dd0906656d20259e6d426f40b2b45fe6b 100644 (file)
@@ -8,5 +8,5 @@
     "cmd-syntax": "{
     \"command\": \"lease4-get-all\"
 }",
-    "cmd-comment": "The lease4-get-all command may result in very large responses.",
-}
\ No newline at end of file
+    "cmd-comment": "The lease4-get-all command may result in very large responses."
+}
index 905162107778e4d0a382b74552fc613df4d33ca4..5512e8447475a5bf744d3da37b9d0070b79bcd93 100644 (file)
@@ -28,4 +28,4 @@
   \"text\": \"IPv4 lease found.\"
 }",
     "resp-comment": "lease4-get returns a result that indicates a result of the operation and lease details, if found. It has one of the following values: 0 (success), 1 (error) or 2 (empty)."
-}
\ No newline at end of file
+}
index c8f6c2ef9c433099c4adcdb31462b717b178b09d..416a3263d855b9985377f1585f6e2cef2ad6c5ae 100644 (file)
@@ -14,5 +14,5 @@
     \"subnet-id\": 44,
     \"force-create\": true
   }
-}",
-}
\ No newline at end of file
+}"
+}
index 94b7daea523f46d4d262aeb9992a537b1729ae09..8b357ac46c318bd7de93e1a075d267ce6214b19e 100644 (file)
@@ -10,6 +10,5 @@
   \"arguments\": {
     \"subnet-id\": 44
   }
+}"
 }
-",
-}
\ No newline at end of file
index b77a24ca2f1ea67372c71464dea7bbbeb9a326c8..ac361b110f4692dd7f00e1ff2dd815a0a55e30ef 100644 (file)
@@ -16,5 +16,5 @@
 }",
     "cmd-comment": "lease6-add can be also used to add leases for IPv6 prefixes..",
     "resp-syntax": "{ \"result\": 0, \"text\": \"Lease added.\" }
-    { \"result\": 1, \"text\": \"missing parameter 'ip-address' (<string>:3:19)\" }",
-}
\ No newline at end of file
+    { \"result\": 1, \"text\": \"missing parameter 'ip-address' (<string>:3:19)\" }"
+}
index 5275393adc8b442305af7de38924d385508b2808..0f5ab56b1c9487e1407afebc72d94f7fee732bfa 100644 (file)
@@ -2,7 +2,7 @@
     "name": "lease6-del",
     "brief": "lease6-del can be used to delete a lease from the lease database.",
     "description": "See <xref linkend=\"idp61\"/>",
-    "support": [ "kea-dhcp4", "kea-dhcp6"" ],
+    "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
     "cmd-syntax": "{
@@ -11,5 +11,5 @@
         \"ip-address\": \"192.0.2.202\"
     }
 }",
-    "cmd-comment": "lease6-del returns a result that indicates a outcome of the operation. It has one of the following values: 0 (success), 1 (error) or 3 (empty).",
-}
\ No newline at end of file
+    "cmd-comment": "lease6-del returns a result that indicates a outcome of the operation. It has one of the following values: 0 (success), 1 (error) or 3 (empty)."
+}
index 7add84869438d44ed21d61f8b822e0e0c9b6efa6..adfafc3d3be298f554acdfc9c19d7d78c5afaf33 100644 (file)
@@ -16,5 +16,5 @@
     \"force-create\": false
   }
 }
-",
-}
\ No newline at end of file
+"
+}
index c50bcd233256030bc62426cf0fc0f1929317741b..cffbf1d501601b067d980a9ed79f2165106befca 100644 (file)
@@ -11,5 +11,5 @@
     \"subnet-id\": 66
   }
 }",
-    "cmd-comment": "Note: not all backends support this command.",
-}
\ No newline at end of file
+    "cmd-comment": "Note: not all backends support this command."
+}
index 45fba07933c8acef570fadfb55e9ba7320b6b39d..c6d9b8f2bcb8fb269a8e8d21345746cabc606616 100644 (file)
@@ -9,5 +9,5 @@
     \"arguments\": {
         \"remove\": true
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 81ab60fd964713a86fe4063b097e490a11787388..3b881a990a61f57c5b514343629c564cd7bbc506 100644 (file)
@@ -8,5 +8,5 @@
     \"command\": \"libreload\",
     \"arguments\": { }
 }",
-    "cmd-comment": "The server will respond with a result of 0 indicating success, or 1 indicating a failure.",
-}
\ No newline at end of file
+    "cmd-comment": "The server will respond with a result of 0 indicating success, or 1 indicating a failure."
+}
index fb36bc05d8ea14f6cfc656d571087504c733783d..e7a58962f395e6be722b5adef80955691bfc00b4 100644 (file)
@@ -2,11 +2,11 @@
     "name": "list-commands",
     "brief": "The list-commands command retrieves a list of all commands supported by the server.",
     "description": "See <xref linkend=\"command-list-commands\"/>",
-    "support": [ "kea-dhcp4", "kea-dhcp6" ],
+    "support": [ "kea-dhcp4", "kea-dhcp6" , "ca" ],
     "avail": "1.0.0",
     "cmd-syntax": "{
     \"command\": \"list-commands\",
     \"arguments\": { }
 }",
-    "cmd-comment": "The server will respond with a list of all supported commands.",
-}
\ No newline at end of file
+    "cmd-comment": "The server will respond with a list of all supported commands."
+}
index 663660a0442da025c31a1427e1fa5430b255ea6f..79d94222b1f4ebe70dece3319d9165a5020bf655 100644 (file)
@@ -41,6 +41,6 @@
         \"shared-networks\": [ { \"name\": \"floor13\" } ]
     },
     \"result\": 0,
-    \"text\": \"A new IPv4 shared network \'floor13\' added\"
-}",
-}
\ No newline at end of file
+    \"text\": \"A new IPv4 shared network 'floor13' added\"
+}"
+}
index 8aa783969fea22ba0ecd7b491b8f1e49b3d6d449..ec5727eae64491156ef259fda6d1c72735a21b4e 100644 (file)
@@ -20,6 +20,6 @@
         ]
     },
     \"result\": 0,
-    \"text\": \"IPv4 shared network \'floor13\' deleted\"
-}",
-}
\ No newline at end of file
+    \"text\": \"IPv4 shared network 'floor13' deleted\"
+}"
+}
index caecb1a1fd943dd70b89eaffe39a2839b7de9819..bef4a308d335a9d6173334cd81361b1bd176c083 100644 (file)
@@ -13,7 +13,7 @@
 }",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"Info about IPv4 shared network \'floor13\' returned\",
+    \"text\": \"Info about IPv4 shared network 'floor13' returned\",
     \"arguments\": {
         \"shared-networks\": [
         {
@@ -44,4 +44,4 @@
     }
 }",
     "resp-comment": "Note that the actual response contains many additional fields that are omitted here for clarity."
-}
\ No newline at end of file
+}
index b1554ca7e0c3ec7f036fe73a25aa406178b565dd..a1ec62a6ffb30b3058b1cc44ec7d9bddbf0751b5 100644 (file)
@@ -7,7 +7,7 @@
     "hook": "subnet_cmds",
     "cmd-syntax": "{
     \"command\": \"network4-list\"
-}d",
+}",
     "resp-syntax": "{
     \"arguments\": {
         \"shared-networks\": [
@@ -17,5 +17,5 @@
     },
     \"result\": 0,
     \"text\": \"2 IPv4 network(s) found\"
-}",
-}
\ No newline at end of file
+}"
+}
index 5840c942adbde581965042875d8a9987b3dde410..4eb8080e331ef7e1d8adf197bb5200abe711395e 100644 (file)
@@ -14,6 +14,6 @@
 }",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network \'floor1\'\"
-}",
-}
\ No newline at end of file
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network 'floor1'\"
+}"
+}
index e8ab0a70d0dc9ee74208aa80e4878fcb9f216b37..1fb9ed7b056d1bd2ad3d050c081f7522b9501130 100644 (file)
@@ -14,6 +14,6 @@
  }",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network \'floor13\'\"
-}",
-}
\ No newline at end of file
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network 'floor13'\"
+}"
+}
index d3804f42f31e54061121660ec68c59f449147110..d3b56c944a5f9a64a7a3ee4b97b1835f04e255b1 100644 (file)
@@ -42,6 +42,6 @@
         \"shared-networks\": [ { \"name\": \"floor13\" } ]
     },
     \"result\": 0,
-    \"text\": \"A new IPv4 shared network \'floor13\' added\"
-}",
-}
\ No newline at end of file
+    \"text\": \"A new IPv4 shared network 'floor13' added\"
+}"
+}
index f78aa60d02088f280437d7302ed14ba7afbf04fb..84e509f49b5c2df9585d3634fdc24739548e8668 100644 (file)
@@ -18,5 +18,5 @@
         \"name\": \"floor13\",
         \"subnets-action\": \"delete\"
     }
-}",
-}
\ No newline at end of file
+}"
+}
index 2f48d204eb095287c48bcc1a8a4b56b89ac719d6..69e8b35257f1338cb29b5e56c26b2bb964e48556 100644 (file)
@@ -13,7 +13,7 @@
 }",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"Info about IPv4 shared network \'floor13\' returned\",
+    \"text\": \"Info about IPv4 shared network 'floor13' returned\",
     \"arguments\": {
         \"shared-networks\": [
         {
@@ -44,4 +44,4 @@
     }
 }",
     "resp-comment": "Note that the actual response contains many additional fields that are omitted here for clarity."
-}
\ No newline at end of file
+}
index c9e5447a95b07b72af5dc9940575e9415bc71939..64cd2089caf3ab8d97ad65ab0b3fd86cd327288d 100644 (file)
@@ -16,7 +16,7 @@
             { \"name\": \"office\" }
         ]
     },
-    "result": 0,
-    "text": "2 IPv4 network(s) found"
-}",
-}
\ No newline at end of file
+    \"result\": 0,
+    \"text\": \"2 IPv4 network(s) found\"
+}"
+}
index bc406d78832a8de68627eba8c3bbcf3809ba361b..0864d353eb9ad37e8fd6d58670e203b21000fd07 100644 (file)
@@ -15,6 +15,6 @@
     "cmd-comment": "The network6-subnet-add command uses exactly the same syntax for both the command and the response.",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network \'floor1\'\"
-}",
-}
\ No newline at end of file
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network 'floor1'\"
+}"
+}
index f6d8fc91f1ffe5616d62135946cca0b9c5417259..f0e12e123fec65bcd72b0df64e7cb37422ffc6ae 100644 (file)
@@ -15,6 +15,6 @@
     "cmd-comment": "The network6-subnet-del command uses exactly the same syntax for both the command and the response.",
     "resp-syntax": "{
     \"result\": 0,
-    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network \'floor13\'\"
-}",
-}
\ No newline at end of file
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network 'floor13'\"
+}"
+}
index 593154b0419bc568ad7ad9417c5adf43af1025d6..137418ecf21ef42649c58d58332bc5b641963695 100644 (file)
@@ -7,5 +7,5 @@
     "cmd-syntax": "{
     \"command\": \"shutdown\"
 }",
-    "cmd-comment": "The server will respond with a confirmation that the shutdown procedure has been initiated.",
-}
\ No newline at end of file
+    "cmd-comment": "The server will respond with a confirmation that the shutdown procedure has been initiated."
+}
index 3aac5472274cdd1108e0b0275a8cef10378e4ff0..d8f16452b7be85b68e3b5a59fdaa713e7e16288c 100644 (file)
@@ -21,5 +21,5 @@
       \"timestamp\": \"2018-05-04 15:03:37.000000\"
       }
     }
-  }",
-}
\ No newline at end of file
+  }"
+}
index 6967f4b275a50f0eccfa2115669f5103f3caec6d..29b96e8704d3d9d500c39853f74dace889818489 100644 (file)
@@ -25,5 +25,5 @@
       \"timestamp\": \"2018-05-04 15:03:37.000000\"
       }
     }
-  }",
-}
\ No newline at end of file
+  }"
+}
index 6c6d63654fe272f3141ccabccfe5e9ca3f2aa54e..fcfdce1161e36336fcc8aa2547246017d93ac835 100644 (file)
@@ -8,5 +8,5 @@
     \"command\": \"statistic-get-all\",
     \"arguments\": { }
 }",
-    "cmd-comment": "The server will respond with details of all recorded statistics, with result set to 0 indicating that it iterated over all statistics (even when the total number of statistics is zero).",
-}
\ No newline at end of file
+    "cmd-comment": "The server will respond with details of all recorded statistics, with result set to 0 indicating that it iterated over all statistics (even when the total number of statistics is zero)."
+}
index 70dcb92618baade7ae198b8dc9a28ff00cce9a9b..97cf96ef87cb8bec04a3383d48250943a70b8ed1 100644 (file)
@@ -10,5 +10,5 @@
         \"name\": \"pkt4-received\"
     }
 }",
-    "cmd-comment": "The server will respond with details of the requested statistic, with a result set to 0 indicating success and the specified statistic as the value of the "arguments" parameter.",
-}
\ No newline at end of file
+    "cmd-comment": "The server will respond with details of the requested statistic, with a result set to 0 indicating success and the specified statistic as the value of the \"arguments\" parameter."
+}
index 821992ac2864bf6a7e14205378cbc62e073c788c..b1cae435b3935d81238523a58f63f9278be9fd02 100644 (file)
@@ -8,5 +8,5 @@
     \"command\": \"statistic-remove-all\",
     \"arguments\": { }
 }",
-    "cmd-comment": "If the removal of all statistics was successful, the server will respond with a status of 0, indicating success and an empty parameters field. If an error is encountered, the server will return a status code of 1 (error) and the text field will contain the error description.",
-}
\ No newline at end of file
+    "cmd-comment": "If the removal of all statistics was successful, the server will respond with a status of 0, indicating success and an empty parameters field. If an error is encountered, the server will return a status code of 1 (error) and the text field will contain the error description."
+}
index a2bfb4ff28a20e1e7e61d256b94057cd41cca306..8e3eaa6874b4424ec8edcc1a7ca33f38cdfebba9 100644 (file)
@@ -10,5 +10,5 @@
         \"name\": \"pkt4-received\"
     }
 }",
-    "cmd-comment": "If the specific statistic is found and its removal was successful, the server will respond with a status of 0, indicating success and an empty parameters field. If an error is encountered (e.g. requested statistic was not found), the server will return a status code of 1 (error) and the text field will contain the error description.",
-}
\ No newline at end of file
+    "cmd-comment": "If the specific statistic is found and its removal was successful, the server will respond with a status of 0, indicating success and an empty parameters field. If an error is encountered (e.g. requested statistic was not found), the server will return a status code of 1 (error) and the text field will contain the error description."
+}