From: Tomek Mrugalski Date: Tue, 6 Aug 2019 15:04:04 +0000 (+0200) Subject: [#777,!464] Reverted JSON files back to the original syntax. X-Git-Tag: Kea-1.6.0~41^2~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b68da569371f7bab1e3f8f74aa22e8fedd449e;p=thirdparty%2Fkea.git [#777,!464] Reverted JSON files back to the original syntax. --- diff --git a/doc/sphinx/api/build-report.json b/doc/sphinx/api/build-report.json index 8a48890dc1..10b62fb610 100644 --- a/doc/sphinx/api/build-report.json +++ b/doc/sphinx/api/build-report.json @@ -3,8 +3,14 @@ "brief": "Returns a list of compilation options that this particular binary was built with", "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ], "avail": "1.2.0", - "resp-syntax": { - "result": 0, - "text": "" - } + + "cmd-syntax": "{ + \"command\": \"build-report\" +}", + + "resp-syntax": "{ + \"result\": 0, + \"text\": +}", + "resp-comment": "" } diff --git a/doc/sphinx/api/cache-get-by-id.json b/doc/sphinx/api/cache-get-by-id.json index dbabce36ef..ec7fd55826 100644 --- a/doc/sphinx/api/cache-get-by-id.json +++ b/doc/sphinx/api/cache-get-by-id.json @@ -4,15 +4,14 @@ "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.6.0", "hook": "host_cache", - "cmd-syntax": { - "command": "cache-get-by-id", - "arguments": { - "hw-address": "01:02:03:04:05:06" - } - }, - "resp-syntax": { - "result": 0, - "text": "2 entries returned.", - "arguments": "" - } + "cmd-syntax": "{ + \"command\": \"cache-get-by-id\", + \"arguments\": { + \"hw-address\": \"01:02:03:04:05:06\" + }", + "resp-syntax": "{ + \"result\": 0 + \"text\": \"2 entries returned.\" + \"arguments\": +}" } diff --git a/doc/sphinx/api/cache-get.json b/doc/sphinx/api/cache-get.json index 98458d09b1..7c72ff1b7f 100644 --- a/doc/sphinx/api/cache-get.json +++ b/doc/sphinx/api/cache-get.json @@ -5,9 +5,9 @@ "avail": "1.4.0", "hook": "host_cache", - "resp-syntax": { - "result": 0, - "text": "123 entries returned.", - "arguments": "" - } + "resp-syntax": "{ + \"result\": 0 + \"text\": \"123 entries returned.\" + \"arguments\": +}" } diff --git a/doc/sphinx/api/cache-insert.json b/doc/sphinx/api/cache-insert.json index d4fa0f9b10..e872c9ae04 100644 --- a/doc/sphinx/api/cache-insert.json +++ b/doc/sphinx/api/cache-insert.json @@ -5,40 +5,41 @@ "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.4.0", "hook": "host_cache", - "cmd-syntax": [{ - "command": "cache-insert", - "arguments": { - "hw-address": "01:02:03:04:05:06", - "subnet-id4": 4, - "subnet-id6": 0, - "ip-address": "192.0.2.100", - "hostname": "somehost.example.org", - "client-classes4": [ ], - "client-classes6": [ ], - "option-data4": [ ], - "option-data6": [ ], - "next-server": "192.0.0.2", - "server-hostname": "server-hostname.example.org", - "boot-file-name": "bootfile.efi", - "host-id": 0 - } - }, { - "command": "cache-insert", - "arguments": { - "hw-address": "01:02:03:04:05:06", - "subnet-id4": 0, - "subnet-id6": 6, - "ip-addresses": [ "2001:db8::cafe:babe" ], - "prefixes": [ "2001:db8:dead:beef::/64" ], - "hostname": "", - "client-classes4": [ ], - "client-classes6": [ ], - "option-data4": [ ], - "option-data6": [ ], - "next-server": "0.0.0.0", - "server-hostname": "", - "boot-file-name": "", - "host-id": 0 - } - }] + "cmd-syntax": "{ + \"command\": \"cache-insert\", + \"arguments\": { + \"hw-address\": \"01:02:03:04:05:06\", + \"subnet-id4\": 4, + \"subnet-id6\": 0, + \"ip-address\": \"192.0.2.100\", + \"hostname\": \"somehost.example.org\", + \"client-classes4\": [ ], + \"client-classes6\": [ ], + \"option-data4\": [ ], + \"option-data6\": [ ], + \"next-server\": \"192.0.0.2\", + \"server-hostname\": \"server-hostname.example.org\", + \"boot-file-name\": \"bootfile.efi\", + \"host-id\": 0 + } +}, +{ + \"command\": \"cache-insert\", + \"arguments\": { + \"hw-address\": \"01:02:03:04:05:06\", + \"subnet-id4\": 0, + \"subnet-id6\": 6, + \"ip-addresses\": [ \"2001:db8::cafe:babe\" ], + \"prefixes\": [ \"2001:db8:dead:beef::/64\" ], + \"hostname\": \"\", + \"client-classes4\": [ ], + \"client-classes6\": [ ], + \"option-data4\": [ ], + \"option-data6\": [ ], + \"next-server\": \"0.0.0.0\", + \"server-hostname\": \"\", + \"boot-file-name\": \"\", + \"host-id\": 0 + } +}" } diff --git a/doc/sphinx/api/cache-load.json b/doc/sphinx/api/cache-load.json index c49c2bad42..582dc11b86 100644 --- a/doc/sphinx/api/cache-load.json +++ b/doc/sphinx/api/cache-load.json @@ -5,8 +5,8 @@ "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.4.0", "hook": "host_cache", - "cmd-syntax": { - "command": "cache-load", - "arguments": "/tmp/kea-host-cache.json" - } + "cmd-syntax": "{ + \"command\": \"cache-load\", + \"arguments\": \"/tmp/kea-host-cache.json\" +}" } diff --git a/doc/sphinx/api/cache-remove.json b/doc/sphinx/api/cache-remove.json index ac933b4fb3..564a28ec56 100644 --- a/doc/sphinx/api/cache-remove.json +++ b/doc/sphinx/api/cache-remove.json @@ -5,18 +5,20 @@ "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.4.0", "hook": "host_cache", - "cmd-syntax": [{ - "command": "cache-remove", - "arguments": { - "ip-address": "192.0.2.1", - "subnet-id": 123 - } - }, { - "command": "cache-remove", - "arguments": { - "duid": "00:01:ab:cd:f0:a1:c2:d3:e4", - "subnet-id": 123 - }, - "comment": "Another example that removes IPv6 host identifier by DUID and specific subnet-id is:" - }] + "cmd-syntax": "{ + \"command\": \"cache-remove\", + \"arguments\": { + \"ip-address\": \"192.0.2.1\", + \"subnet-id\": 123 + } +} + +Another example that removes IPv6 host identifier by DUID and specific subnet-id is: +{ + \"command\": \"cache-remove\", + \"arguments\": { + \"duid\": \"00:01:ab:cd:f0:a1:c2:d3:e4\", + \"subnet-id\": 123 + } +}" } diff --git a/doc/sphinx/api/cache-size.json b/doc/sphinx/api/cache-size.json index d197c979a9..d30f9daa38 100644 --- a/doc/sphinx/api/cache-size.json +++ b/doc/sphinx/api/cache-size.json @@ -5,9 +5,9 @@ "avail": "1.6.0", "hook": "host_cache", - "resp-syntax": { - "result": 0, - "text": "123 entries.", - "arguments": { "size": 123 } - } + "resp-syntax": "{ + \"result\": 0 + \"text\": \"123 entries.\" + \"arguments\": { \"size\": 123 } +}" } diff --git a/doc/sphinx/api/cache-write.json b/doc/sphinx/api/cache-write.json index a223adafe7..635fe666e7 100644 --- a/doc/sphinx/api/cache-write.json +++ b/doc/sphinx/api/cache-write.json @@ -5,9 +5,9 @@ "avail": "1.4.0", "hook": "host_cache", - "cmd-syntax": { - "command": "cache-write", - "arguments": "/path/to/the/file.json" - }, + "cmd-syntax": "{ + \"command\": \"cache-write\", + \"arguments\": \"/path/to/the/file.json\" +}", "cmd-comment": "The command takes one mandatory argument that specifies a filename path of a file to be written." } diff --git a/doc/sphinx/api/class-add.json b/doc/sphinx/api/class-add.json index c9e19d3c0c..69e9a47900 100644 --- a/doc/sphinx/api/class-add.json +++ b/doc/sphinx/api/class-add.json @@ -1,28 +1,33 @@ { "name": "class-add", - "brief": "This command is used to create and add a new class to the existing server configuration.", + "brief": "This command is used to create and add a new class to the existing + server configuration.", "description": "See ", "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.5.0", "hook": "class_cmds", - "cmd-syntax": { - "command": "class-add", - "arguments": { - "client-classes": [ { - "name": "", - "test": "", - "option-data": [ "