]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#777,!464] Reverted JSON files back to the original syntax.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 6 Aug 2019 15:04:04 +0000 (17:04 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 7 Aug 2019 10:58:10 +0000 (12:58 +0200)
76 files changed:
doc/sphinx/api/build-report.json
doc/sphinx/api/cache-get-by-id.json
doc/sphinx/api/cache-get.json
doc/sphinx/api/cache-insert.json
doc/sphinx/api/cache-load.json
doc/sphinx/api/cache-remove.json
doc/sphinx/api/cache-size.json
doc/sphinx/api/cache-write.json
doc/sphinx/api/class-add.json
doc/sphinx/api/class-del.json
doc/sphinx/api/class-get.json
doc/sphinx/api/class-list.json
doc/sphinx/api/class-update.json
doc/sphinx/api/config-get.json
doc/sphinx/api/config-reload.json
doc/sphinx/api/config-set.json
doc/sphinx/api/config-test.json
doc/sphinx/api/config-write.json
doc/sphinx/api/dhcp-disable.json
doc/sphinx/api/dhcp-enable.json
doc/sphinx/api/ha-heartbeat.json
doc/sphinx/api/ha-scopes.json
doc/sphinx/api/ha-sync.json
doc/sphinx/api/lease4-add.json
doc/sphinx/api/lease4-del.json
doc/sphinx/api/lease4-get-all.json
doc/sphinx/api/lease4-get.json
doc/sphinx/api/lease4-update.json
doc/sphinx/api/lease4-wipe.json
doc/sphinx/api/lease6-add.json
doc/sphinx/api/lease6-bulk-apply.json
doc/sphinx/api/lease6-del.json
doc/sphinx/api/lease6-get-all.json
doc/sphinx/api/lease6-get.json
doc/sphinx/api/lease6-update.json
doc/sphinx/api/lease6-wipe.json
doc/sphinx/api/leases-reclaim.json
doc/sphinx/api/libreload.json
doc/sphinx/api/list-commands.json
doc/sphinx/api/network4-add.json
doc/sphinx/api/network4-del.json
doc/sphinx/api/network4-get.json
doc/sphinx/api/network4-list.json
doc/sphinx/api/network4-subnet-add.json
doc/sphinx/api/network4-subnet-del.json
doc/sphinx/api/network6-add.json
doc/sphinx/api/network6-del.json
doc/sphinx/api/network6-get.json
doc/sphinx/api/network6-list.json
doc/sphinx/api/network6-subnet-add.json
doc/sphinx/api/network6-subnet-del.json
doc/sphinx/api/reservation-add.json
doc/sphinx/api/reservation-del.json
doc/sphinx/api/reservation-get-all.json
doc/sphinx/api/reservation-get-page.json
doc/sphinx/api/reservation-get.json
doc/sphinx/api/shutdown.json
doc/sphinx/api/stat-lease4-get.json
doc/sphinx/api/stat-lease6-get.json
doc/sphinx/api/statistic-get-all.json
doc/sphinx/api/statistic-get.json
doc/sphinx/api/statistic-remove-all.json
doc/sphinx/api/statistic-remove.json
doc/sphinx/api/statistic-reset-all.json
doc/sphinx/api/statistic-reset.json
doc/sphinx/api/subnet4-add.json
doc/sphinx/api/subnet4-del.json
doc/sphinx/api/subnet4-get.json
doc/sphinx/api/subnet4-list.json
doc/sphinx/api/subnet4-update.json
doc/sphinx/api/subnet6-add.json
doc/sphinx/api/subnet6-del.json
doc/sphinx/api/subnet6-get.json
doc/sphinx/api/subnet6-list.json
doc/sphinx/api/subnet6-update.json
doc/sphinx/api/version-get.json

index 8a48890dc1ab29317b1cb8c8f711c686462e22cb..10b62fb61064ca65c59f192ee7c28308d865672d 100644 (file)
@@ -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": "<string with build details>"
-    }
+
+    "cmd-syntax": "{
+    \"command\": \"build-report\"
+}",
+
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": <string with build details>
+}",
+    "resp-comment": ""
 }
index dbabce36ef35da381322b18b21766aa1b4e55e46..ec7fd558264fa76cdce8ac356d4731ad8a0d11c8 100644 (file)
@@ -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": "<list of host reservations>"
-    }
+    "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\": <list of host reservations>
+}"
 }
index 98458d09b1730981d8efeb093f121cc15a36bf22..7c72ff1b7fcad88c4d5389986b1211ae3cdfa83b 100644 (file)
@@ -5,9 +5,9 @@
     "avail": "1.4.0",
     "hook": "host_cache",
 
-    "resp-syntax": {
-        "result": 0,
-        "text": "123 entries returned.",
-        "arguments": "<list of host reservations>"
-    }
+    "resp-syntax": "{
+    \"result\": 0
+    \"text\": \"123 entries returned.\"
+    \"arguments\": <list of host reservations>
+}"
 }
index d4fa0f9b101c2b13b47df151e678af14091e5b0e..e872c9ae045c1df6121e415129585727edfcae96 100644 (file)
@@ -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
+    }
+}"
 }
index c49c2bad42a40cf5d865eb25616aa646b3ef0dc6..582dc11b8682e67cdc579e4901197dfa7f29f533 100644 (file)
@@ -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\"
+}"
 }
index ac933b4fb3a437eea7d26a061a045315d1272fa6..564a28ec566228d1a6f11c11550d5a03b277037b 100644 (file)
@@ -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
+    }
+}"
 }
index d197c979a934ea073a39bf997f565905039ce226..d30f9daa38b4d464ec75cb0b1a858389fa846252 100644 (file)
@@ -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 }
+}"
 }
index a223adafe726cc593e9b0ae3569b9bb6e49b843f..635fe666e7e89f1a5a34237d57dad689e1b448c7 100644 (file)
@@ -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."
 }
index c9e19d3c0c9326ff4ae904f8c89332ef1b93e9ba..69e9a47900a2e04ea70ad56a3a3df8ce12a499ff 100644 (file)
@@ -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 <xref linkend=\"command-class-add\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.5.0",
     "hook": "class_cmds",
-    "cmd-syntax": {
-        "command": "class-add",
-        "arguments": {
-            "client-classes": [ {
-                "name": "<name of the class>",
-                "test": "<test expression to be evaluated on incoming packets>",
-                "option-data": [ "<option values here>" ],
-                "option-def": [ "<option defintions here>" ],
-                "next-server": "<ipv4 address>",
-                "server-hostname": "<string>",
-                "boot-file-name": "<name of the boot file>"
-            } ]
-        }
-    },
-    "cmd-comment": "The <command>next-server</command>, <command>server-hostname</command> and <command>boot-file-name</command> are DHCPv4 specific. Only one client class can be added with a single command. ",
-    "resp-syntax": {
-        "result": 0,
-        "text": "Class '<class-name>' added."
-    },
-    "resp-comment": "The command will be successful (result 0), unless the class name is a duplicate or another error occurs (result 1)."
+    "cmd-syntax": "{
+    \"command\": \"class-add\",
+    \"arguments\": {
+        \"client-classes\": [ {
+           \"name\": <name of the class>,
+           \"test\": <test expression to be evaluated on incoming packets>,
+           \"option-data\": [ <option values here> ],
+           \"option-def\": [ <option defintions here> ],
+           \"next-server\": <ipv4 address>,
+           \"server-hostname\": <string>,
+           \"boot-file-name\": <name of the boot file>
+        } ]
+    }
+}",
+    "cmd-comment": "The <command>next-server</command>,
+                    <command>server-hostname</command> and
+                    <command>boot-file-name</command> are DHCPv4 specific. Only
+                    one client class can be added with a single command. ",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Class '<class-name>' added.\",
+}",
+    "resp-comment": "The command will be successful (result 0), unless the
+                     class name is a duplicate or another error occurs (result 1)."
 }
index ee444b5157f0da675587059551f5215be3c4c3f7..cd86213295ea5f0e9db2549090476464ee698a27 100644 (file)
@@ -5,16 +5,19 @@
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.5.0",
     "hook": "class_cmds",
-    "cmd-syntax": {
-        "command": "class-del",
-        "arguments": {
-            "name": "<name of the class>"
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Class '<class-name>' deleted."
-    },
-    "resp-comment": "The command will return a result of 3 (empty) if the client class doesn't exist. If the client class exists, the retured result is 0 if the deletion was successful and the result is 1 if the deletion is unsuccessful."
+    "cmd-syntax": "{
+    \"command\": \"class-del\",
+    \"arguments\": {
+        \"name\": <name of the class>
+    }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Class '<class-name>' deleted.\"
+}",
+    "resp-comment": "The command will return a result of 3 (empty) if the client
+                    class doesn't exist. If the client class exists, the retured
+                    result is 0 if the deletion was successful and the result is 1
+                    if the deletion is unsuccessful."
 
 }
index 7d637bdcb98869483bbf1f39a47c061b535883a5..7330af0e2a156a6543bfcd1083b467c5e90d00ab 100644 (file)
@@ -1,33 +1,40 @@
 {
     "name": "class-get",
-    "brief": "This command is used to return detailed information about an existing client class.",
+    "brief": "This command is used to return detailed information about an
+              existing client class.",
     "description": "See <xref linkend=\"command-class-get\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.5.0",
     "hook": "class_cmds",
-    "cmd-syntax": {
-        "command": "class-get",
-        "arguments": {
-            "name": "<name of the class>"
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Class '<class-name>' definition returned",
-        "arguments": {
-            "client-classes": [
-                {
-                    "name": "<name of the class>",
-                    "only-if-required": "<only if required boolean value>",
-                    "test": "<test expression to be evaluated on incoming packets>",
-                    "option-data": [ "<option values here>" ],
-                    "option-def": [ "<option defintions here>" ],
-                    "next-server": "<ipv4 address>",
-                    "server-hostname": "<string>",
-                    "boot-file-name": "<name of the boot file>"
-                }
-            ]
-        }
-    },
-    "resp-comment": "The returned information depends on the DHCP server type, i.e. some parameters are specific to DHCPv4 server. Also, some parameters may not be returned if they are not set for the client class. If the class with specified name doesn't exist a result of 3 (empty) is returned. If the client class is found, the result of 0 is returned. If there is an error while processing the command, the result of 1 is returned."
+    "cmd-syntax": "{
+    \"command\": \"class-get\",
+    \"arguments\": {
+        \"name\": <name of the class>
+    }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Class '<class-name>' definition returned\",
+    \"arguments\": {
+        \"client-classes\": [
+            {
+                \"name\": <name of the class>,
+                \"only-if-required\": <only if required boolean value>,
+                \"test\": <test expression to be evaluated on incoming packets>,
+                \"option-data\": [ <option values here> ],
+                \"option-def\": [ <option defintions here> ],
+                \"next-server\": <ipv4 address>,
+                \"server-hostname\": <string>,
+                \"boot-file-name\": <name of the boot file>
+            }
+        ]
+    }
+}",
+    "resp-comment": "The returned information depends on the DHCP server type,
+                     i.e. some parameters are specific to DHCPv4 server. Also,
+                     some parameters may not be returned if they are not set for
+                     the client class. If the class with specified name doesn't
+                     exist a result of 3 (empty) is returned. If the client class
+                     is found, the result of 0 is returned. If there is an error
+                     while processing the command, the result of 1 is returned."
 }
index e8d08259fd7efc3994caeb6bed4126d22d9f0bde..98c067fa3c96ce149ec783d52481b62ccaf8babe 100644 (file)
@@ -1,24 +1,35 @@
 {
     "name": "class-list",
-    "brief": "This command is used to retrieve a list of all client classes from the server configuration.",
+    "brief": "This command is used to retrieve a list of all client
+              classes from the server configuration.",
     "description": "See <xref linkend=\"command-class-list\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.5.0",
     "hook": "class_cmds",
+    "cmd-syntax": "{
+    \"command\": \"class-list\"
+}",
     "cmd-comment": "This command includes no arguments.",
-    "resp-syntax": {
-        "result": 0,
-        "text": "<number of> classes found",
-        "arguments": {
-            "client-classes": [
-                {
-                    "name": "<first class name>"
-                },
-                {
-                    "name": "<second class name>"
-                }
-            ]
-        }
-    },
-    "resp-comment": "The returned list of classes merely contains their names. In order to retrieve full information about one of these classes use <xref linkend=\"command-class-get\"/>. The returned result is 3 (empty) if no classes are found. If the command is processed successfully and the list of client classes is not empty, the result of 0 is returned. If there is an error while processing the command, the result of 1 is returned."
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"<number of> classes found\",
+    \"arguments\": {
+        \"client-classes\": [
+            {
+                \"name\": <first class name>
+            },
+            {
+                \"name\": <second class name>
+            }
+        ]
+    }
+}",
+    "resp-comment": "The returned list of classes merely contains their names.
+                     In order to retrieve full information about one of these
+                     classes use <xref linkend=\"command-class-get\"/>.
+                     The returned result is 3 (empty) if no classes are found.
+                     If the command is processed successfully and the list of
+                     client classes is not empty, the result of 0 is returned.
+                     If there is an error while processing the command, the
+                     result of 1 is returned."
 }
index e300b3214767c3359c6b71d4646d813626c2714c..436da47c7307f901394b32d2c2c4675aa1d566af 100644 (file)
@@ -1,28 +1,35 @@
 {
     "name": "class-update",
-    "brief": "This command is used to update an existing client class in the server configuration.",
+    "brief": "This command is used to update an existing client class in
+              the server configuration.",
     "description": "See <xref linkend=\"command-class-update\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.5.0",
     "hook": "class_cmds",
-    "cmd-syntax": {
-        "command": "class-update",
-        "arguments": {
-            "client-classes": [ {
-                "name": "<name of the class>",
-                "test": "<test expression to be evaluated on incoming packets>",
-           "option-data": [ "<option values here>" ],
-           "option-def": [ "<option defintions here>" ],
-           "next-server": "<ipv4 address>",
-           "server-hostname": "<string>",
-           "boot-file-name": "<name of the boot file>"
-            } ]
-        }
-    },
-    "cmd-comment": "The <command>next-server</command>, <command>server-hostname</command> and <command>boot-file-name</command> are DHCPv4 specific. Only one client class can be updated with a single command. ",
-    "resp-syntax": {
-        "result": 0,
-        "text": "Class '<class-name>' updated."
-    },
-    "resp-comment": "The command will return the result of 3 (empty) if the client class doesn't exist. If the client class exists, the retured result is 0 if the update was successful and the result is 1 if the update is unsuccessful."
+    "cmd-syntax": "{
+    \"command\": \"class-update\",
+    \"arguments\": {
+        \"client-classes\": [ {
+           \"name\": <name of the class>,
+           \"test\": <test expression to be evaluated on incoming packets>,
+           \"option-data\": [ <option values here> ],
+           \"option-def\": [ <option defintions here> ],
+           \"next-server\": <ipv4 address>,
+           \"server-hostname\": <string>,
+           \"boot-file-name\": <name of the boot file>
+        } ]
+    }
+}",
+    "cmd-comment": "The <command>next-server</command>,
+                    <command>server-hostname</command> and
+                    <command>boot-file-name</command> are DHCPv4 specific. Only
+                    one client class can be updated with a single command. ",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Class '<class-name>' updated.\",
+}",
+    "resp-comment": "The command will return the result of 3 (empty) if the client
+                    class doesn't exist. If the client class exists, the retured
+                    result is 0 if the update was successful and the result is 1
+                    if the update is unsuccessful."
 }
index 856b1f6b5a2e6d531b1b500cbeb24ed506634839..70109bb16f39a6d5db5caab953b341abf0c311b8 100644 (file)
@@ -1,12 +1,20 @@
 {
     "name": "config-get",
-    "brief": "Retrieves the current configuration used by the server. The configuration is roughtly equal to the configuration file, but includes additional changes made by other commands and due to parameters inheritance.",
+    "brief": "Retrieves the current configuration used by the server. The configuration
+              is roughtly equal to the configuration file, but includes additional
+              changes made by other commands and due to parameters inheritance.",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.2.0",
+
+    "cmd-syntax": "{
+    \"command\": \"config-get\"
+}",
     "cmd-comment": "This command takes no parameters.",
 
-    "resp-syntax": {
-        "result": "<integer>",
-        "arguments": "<JSON configuration here, starting with Dhcp4, Dhcp6, or Control-agent object>"
+    "resp-syntax": "{
+    \"result\": <integer>,
+    \"arguments\": {
+        <JSON configuration here, starting with Dhcp4, Dhcp6, or Control-agent object>
     }
+}"
 }
index 1f3f38d87f7e3fdb8448f305426b10c792dda869..400559b5a8ce5a97abfd9bb8c5a53710420b4ac7 100644 (file)
@@ -3,5 +3,8 @@
     "brief": "The config-reload command instructs Kea to load again the configuration file that was used previously.",
     "description": "See <xref linkend=\"command-config-reload\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
-    "avail": "1.2.0"
+    "avail": "1.2.0",
+    "cmd-syntax": "{
+    \"command\": \"config-reload\"
+}"
 }
index a2058aab69760af62369e9896a8cbbedefa6ff78..ce0cb4b9ee7fdbcde9a6a2b46dd681dd5f27b154 100644 (file)
@@ -4,17 +4,17 @@
     "description": "See <xref linkend=\"command-config-set\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.2.0",
-    "cmd-syntax": {
-        "command": "config-set",
-        "arguments":  {
-            "<server>": {
-            }
+    "cmd-syntax": "{
+    \"command\": \"config-set\",
+    \"arguments\":  {
+        \"<server>\": {
         }
-    },
-    "cmd-comment": "where <server> is the configuration element name for a given server such as 'Dhcp4' or 'Dhcp6'",
-    "resp-syntax": [{
-        "result": 0, "text": "Configuration successful."
-    },  {
-        "result": 1, "text": "unsupported parameter: BOGUS (<string>:16:26)"
-    }]
+     }
+}",
+    "cmd-comment": "where &lt;server&gt; is the configuration element name for a given server such as \"Dhcp4\" or \"Dhcp6\"",
+    "resp-syntax": "    {\"result\": 0, \"text\": \"Configuration successful.\" }
+
+    or
+
+    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }"
 }
index 6482de958ba3813f05cc5e89bc64a250e12eed76..ea9f12f267f9c32f23b5bfedfb5ebdbe34629a0f 100644 (file)
@@ -4,17 +4,17 @@
     "description": "See <xref linkend=\"command-config-test\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.2.0",
-    "cmd-syntax": {
-        "command": "config-test",
-        "arguments":  {
-            "<server>": {
-            }
+    "cmd-syntax": "{
+    \"command\": \"config-test\",
+    \"arguments\":  {
+        \"<server>\": {
         }
-    },
-    "cmd-comment": "where <server> is the configuration element name for a given server such as 'Dhcp4' or 'Dhcp6'",
-    "resp-syntax": [{
-        "result": 0, "text": "Configuration seems sane..."
-    }, {
-        "result": 1, "text": "unsupported parameter: BOGUS (<string>:16:26)"
-    }]
+     }
+}",
+    "cmd-comment": "where &gt;server&lt; is the configuration element name for a given server such as \"Dhcp4\" or \"Dhcp6\"",
+    "resp-syntax": "{\"result\": 0, \"text\": \"Configuration seems sane...\" }
+
+    or
+
+    {\"result\": 1, \"text\": \"unsupported parameter: BOGUS (<string>:16:26)\" }"
 }
index 2d08f74fdaa5e5fc8d7540b42c1e181a3aa37b02..098f7e1c71ae052304b35a577ff55fd52dfd74f5 100644 (file)
@@ -1,13 +1,14 @@
 {
     "name": "config-write",
-    "brief": "The config-write command instructs the Kea server to write its current configuration to a file on disk.",
+    "brief": "The config-write command instructs the Kea server to write its
+              current configuration to a file on disk.",
     "description": "See <xref linkend=\"command-config-write\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.2.0",
-    "cmd-syntax": {
-        "command": "config-write",
-        "arguments": {
-            "filename": "config-modified-2017-03-15.json"
-        }
+    "cmd-syntax": "{
+    \"command\": \"config-write\",
+    \"arguments\": {
+        \"filename\": \"config-modified-2017-03-15.json\"
     }
+}"
 }
index 15a219d779e2a7e77befda4aa809f1a79d05abef..80baa6b2b97722a0cde9a93980e253c14eb0d3b8 100644 (file)
@@ -4,10 +4,10 @@
     "description": "See <xref linkend=\"command-dhcp-disable\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.4.0",
-    "cmd-syntax": {
-        "command": "dhcp-disable",
-        "arguments": {
-            "max-period": 20
-        }
+    "cmd-syntax": "{
+    \"command\": \"dhcp-disable\",
+    \"arguments\": {
+        \"max-period\": 20
     }
+}"
 }
index bb956ec12facf0a16332d6cfbd9c4334fb815884..a945b931f4523639ec4ca800ec7504807df24b0f 100644 (file)
@@ -3,5 +3,8 @@
     "brief": "The dhcp-enable command globally enables the DHCP service.",
     "description": "See <xref linkend=\"command-dhcp-enable\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
-    "avail": "1.4.0"
+    "avail": "1.4.0",
+    "cmd-syntax": "{
+    \"command\": \"dhcp-enable\"
+}"
 }
index b5cfde2268be11008b2102220eda3dd5838bd502..0ed6464e19c61b8502ea0ee69907e4a4847125e8 100644 (file)
@@ -1,9 +1,13 @@
 {
     "name": "ha-heartbeat",
-    "brief": "This command is sent internally by Kea partner when operating in High Availability (HA) mode. It will retrieve the server HA state and clock value.",
+    "brief": "This command is sent internally by Kea partner when operating
+              in High Availability (HA) mode. It will retrieve the server HA state and clock value.",
     "description": "See <xref linkend=\"ha-server-states\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.4.0",
     "hook": "high_availability",
+    "cmd-syntax": "{
+    \"command\": \"ha-heartbeat\",
+    }",
     "resp-comment": "The response to this command is different from the typical command response. The response will include server state (see <xref linkend=\"ha-server-states\"/> plus the current clock value."
 }
index 499c96c23b67bcfe229db45c7d04685031825935..28b48eeb92d70717cf72e85d1a1c81fd3e5b037c 100644 (file)
@@ -5,12 +5,11 @@
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.4.0",
     "hook": "high_availability",
-    "cmd-syntax": {
-        "command": "ha-scopes",
-        "service": [ "<service, typically 'dhcp4' or 'dhcp6'>" ],
-        "arguments": {
-            "scopes": [ "HA_server1", "HA_server2" ]
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"ha-scopes\",
+    \"service\": [ <service, typically \"dhcp4\" or \"dhcp6\"> ],
+    \"arguments\": {
+        \"scopes\": [ \"HA_server1\", \"HA_server2\" ]
+    }",
     "cmd-comment": "In the example given, the arguments configure the server to handle traffic from both HA_server1 and HA_server2 scopes."
 }
index 74872e0852236d61d36c1a848ab6a183c6e0804f..282ca606d837ecc3ee831499d0cdd879a62eaeb7 100644 (file)
@@ -1,16 +1,17 @@
 {
     "name": "ha-sync",
-    "brief": "The command is issued to instruct the server running in HA mode to synchronize its local lease database with the selected peer.",
+    "brief": "The command is issued to instruct the server running in HA mode to 
+              synchronize its local lease database with the selected peer.",
     "description": "See <xref linkend=\"command-ha-sync\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.4.0",
     "hook": "high_availability",
-    "cmd-syntax": {
-        "command": "ha-sync",
-        "service": [ "<service affected: 'dhcp4' or 'dhcp6'" ],
-        "arguments": {
-            "server-name": "<name of the partner server>",
-        "max-period": "<integer, in seconds>"
-        }
+    "cmd-syntax": "{
+    \"command\": \"ha-sync\",
+    \"service\": [ <service affected: \"dhcp4\" or \"dhcp6\" ],
+    \"arguments\": {
+        \"server-name\": <name of the partner server>,
+        \"max-period\": <integer, in seconds>
     }
+}"
 }
index b099613fbc15d67eddc5e3b374704b24d8e9d353..7e95990ce1fc6e48f2a1b6714168b47cd22f4cf4 100644 (file)
@@ -5,12 +5,12 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-add",
-        "arguments": {
-            "ip-address": "192.0.2.202",
-            "hw-address": "1a:1b:1c:1d:1e:1f"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease4-add\",
+    \"arguments\": {
+        \"ip-address\": \"192.0.2.202\",
+        \"hw-address\": \"1a:1b:1c:1d:1e:1f\"
+    }
+}",
     "cmd-comment": "Note that Kea 1.4 requires an additional argument, subnet-ID, which is optional as of Kea 1.5. A number of other more detailed optional arguments are also supported."
 }
index bf5052bf2c85ef2de5a58b6be5542028ec8af04f..37ccc6bb9afdd62bfd501e8325e16b59f457fc13 100644 (file)
@@ -5,11 +5,11 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-del",
-        "arguments": {
-            "ip-address": "192.0.2.202"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease4-del\",
+    \"arguments\": {
+        \"ip-address\": \"192.0.2.202\"
+    }
+}",
     "cmd-comment": "Specify the lease to be deleted either by IP address, or by identifier-type and identifier value. Currently supported identifiers are \"hw-address\" and \"client-id\"."
-}
+}
\ No newline at end of file
index e36cf358ed1ec11ea84932ec910d9536fa9db9f8..1b03e3abfe7f0f8ba9a654605ae6dfee829f2dc0 100644 (file)
@@ -5,9 +5,9 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.4.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-get-all",
-        "arguments": "subnets"
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease4-get-all\"
+    \"arguments\": \"subnets\"
+}",
     "cmd-comment": "The lease4-get-all command may result in very large responses."
 }
index 0558036656f8fd0cfff917483f1e020c7f277bde..2fea7c8b4967bebce76618d1edbd9a790175280a 100644 (file)
@@ -5,27 +5,27 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-get",
-        "arguments": {
-            "ip-address": "192.0.2.1"
-        }
-    },
-    "resp-syntax": {
-        "arguments": {
-            "client-id": "42:42:42:42:42:42:42:42",
-            "cltt": 12345678,
-            "fqdn-fwd": false,
-            "fqdn-rev": true,
-            "hostname": "myhost.example.com.",
-            "hw-address": "08:08:08:08:08:08",
-            "ip-address": "192.0.2.1",
-            "state": 0,
-            "subnet-id": 44,
-            "valid-lft": 3600
-        },
-        "result": 0,
-        "text": "IPv4 lease found."
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease4-get\",
+    \"arguments\": {
+        \"ip-address\": \"192.0.2.1\"
+    }
+}",
+    "resp-syntax": "{
+  \"arguments\": {
+    \"client-id\": \"42:42:42:42:42:42:42:42\",
+    \"cltt\": 12345678,
+    \"fqdn-fwd\": false,
+    \"fqdn-rev\": true,
+    \"hostname\": \"myhost.example.com.\",
+    \"hw-address\": \"08:08:08:08:08:08\",
+    \"ip-address\": \"192.0.2.1\",
+    \"state\": 0,
+    \"subnet-id\": 44,
+    \"valid-lft\": 3600
+  },
+  \"result\": 0,
+  \"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)."
 }
index 379ebbd4497e16a2dd1831d275b3501898c06d02..8ae92c23867aae4f9d1451a97a1e156ed4928e76 100644 (file)
@@ -5,14 +5,14 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-update",
-        "arguments": {
-            "ip-address": "192.0.2.1",
-            "hostname": "newhostname.example.org",
-            "hw-address": "1a:1b:1c:1d:1e:1f",
-            "subnet-id": 44,
-            "force-create": true
-        }
-    }
+    "cmd-syntax": "{
+  \"command\": \"lease4-update\",
+  \"arguments\": {
+    \"ip-address\": \"192.0.2.1\",
+    \"hostname\": \"newhostname.example.org\",
+    \"hw-address\": \"1a:1b:1c:1d:1e:1f\",
+    \"subnet-id\": 44,
+    \"force-create\": true
+  }
+}"
 }
index 101b0ae3af00bc075d2563c8c8be678eeedbd0f7..1b6d745dcbb3b807cc8e6fc4377684aa044f6710 100644 (file)
@@ -5,10 +5,10 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease4-wipe",
-        "arguments": {
-            "subnet-id": 44
-        }
-    }
+    "cmd-syntax": "{
+  \"command\": \"lease4-wipe\",
+  \"arguments\": {
+    \"subnet-id\": 44
+  }
+}"
 }
index 78d050214e77733a1c2fc5707118443cb2fc644d..039b11203ad7ad26b5dfa6ef1e8cbdb5f6b9abd2 100644 (file)
@@ -5,19 +5,16 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-add",
-        "arguments": {
-            "subnet-id": 66,
-            "ip-address": "2001:db8::3",
-            "duid": "1a:1b:1c:1d:1e:1f:20:21:22:23:24",
-            "iaid": 1234
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease6-add\",
+    \"arguments\": {
+        \"subnet-id\": 66,
+        \"ip-address\": \"2001:db8::3\",
+        \"duid\": \"1a:1b:1c:1d:1e:1f:20:21:22:23:24\",
+        \"iaid\": 1234
+    }
+}",
     "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)"
-    }]
+    "resp-syntax": "{ \"result\": 0, \"text\": \"Lease added.\" }
+    { \"result\": 1, \"text\": \"missing parameter 'ip-address' (<string>:3:19)\" }"
 }
index 05cf30ae942fc4ab05ea3d6954ca6fa92c57b48f..d132b9758f9c76ad863effaf486bec592d46abb3 100644 (file)
@@ -4,55 +4,61 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.6.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-bulk-apply",
-        "arguments": {
-            "deleted-leases": [
+    "cmd-syntax": "{
+        \"command\": \"lease6-bulk-apply\",
+        \"arguments\": {
+            \"deleted-leases\": [
                 {
-                    "ip-address": "2001:db8:abcd::",
-                    "type": "IA_PD"
+                    \"ip-address\": \"2001:db8:abcd::\",
+                    \"type\": \"IA_PD\",
+                    ...
                 },
                 {
-                    "ip-address": "2001:db8:abcd::234",
-                    "type": "IA_NA"
+                    \"ip-address\": \"2001:db8:abcd::234\",
+                    \"type\": \"IA_NA\",
+                    ...
                 }
             ],
-            "leases": [
+            \"leases\": [
                 {
-                    "subnet-id": 66,
-                    "ip-address": "2001:db8:cafe::",
-                    "type": "IA_PD"
+                    \"subnet-id\": 66,
+                    \"ip-address\": \"2001:db8:cafe::\",
+                    \"type\": \"IA_PD\",
+                    ...
                 },
                 {
-                    "subnet-id": 66,
-                    "ip-address": "2001:db8:abcd::333",
-                    "type": "IA_NA"
+                    \"subnet-id\": 66,
+                    \"ip-address\": \"2001:db8:abcd::333\",
+                    \"type\": \"IA_NA\",
+                    ...
                 }
             ]
         }
-    },
-    "cmd-comment": "If any of the leases is malformed, all changes are rolled back. If the leases are well formed but the operation fails for one or more leases, the these leases are listed in the response but the changes are preserved for all leases for which the operation was successful. The 'deleted-leases' and 'leases' are optional parameters but one of them must be specified.",
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv6 leases bulk apply completed.",
-        "arguments": {
-            "failed-deleted-leases": [
+}",
+    "cmd-comment": "If any of the leases is malformed, all changes are rolled back. If the leases are well formed but the operation fails for one or more leases, the these leases are listed in the response but the changes are preserved for all leases for which the operation was successful. The \"deleted-leases\" and \"leases\" are optional parameters but one of them must be specified.",
+    "resp-syntax": " {
+    {
+        \"result\": 0,
+        \"text\": IPv6 leases bulk apply completed.
+        \"arguments\": {
+            \"failed-deleted-leases\": [
                 {
-                    "ip-address": "2001:db8:abcd::",
-                    "type": "IA_PD",
-                    "result": "<control result>",
-                    "error-message": "<error message>"
+                    \"ip-address\": \"2001:db8:abcd::\",
+                    \"type\": \"IA_PD\",
+                    \"result\": <control result>,
+                    \"error-message\": <error message>
                 }
             ],
-            "failed-leases": [
+            \"failed-leases\": [
                 {
-                    "ip-address": "2001:db8:cafe::",
-                    "type": "IA_PD",
-                    "result": "<control result>",
-                    "error-message": "<error message>"
+                    \"ip-address\": \"2001:db8:cafe::\",
+                    \"type\": \"IA_PD\",
+                    \"result\" <control result>,
+                    \"error-message\": <error message>
                 }
             ]
         }
-    },
-    "resp-comment": "The 'failed-deleted-leases' holds the list of leases which failed to delete. This includes leases which were not found in the database. The 'failed-leases' includes the list of leases which failed to create or update. For each lease for which there was an error while processing the lease, inserting it into the database etc. the result is set to 1. For each lease which was not deleted because the server didn't find it in the database the result of 3 is returned."
+    }
+}",
+    "resp-comment": "The \"failed-deleted-leases\" holds the list of leases which failed to delete. This includes leases which were not found in the database. The \"failed-leases\" includes the list of leases which failed to create or update. For each lease for which there was an error while processing the lease, inserting it into the database etc. the result is set to 1. For each lease which was not deleted because the server didn't find it in the database the result of 3 is returned."
 }
index 2330b9cbe2aa36024a116307bb5db1085a87fea4..c81bb27b83fd34949201b4f1e05d54d2f69aac9b 100644 (file)
@@ -5,11 +5,11 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-del",
-        "arguments": {
-            "ip-address": "192.0.2.202"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"lease6-del\",
+    \"arguments\": {
+        \"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)."
 }
index 1f02eb5dfb8219f6865c13c4aea1f4b994481c95..e60bc812b9b6b837bc9cd792c159278fd714f459 100644 (file)
@@ -5,49 +5,49 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-get-all",
-        "arguments": {
-            "subnets": [ 1, 2, 3, 4 ]
-        }
-    },
-    "resp-syntax": {
-        "arguments": {
-            "leases": [
-                {
-                    "cltt": 12345678,
-                    "duid": "42:42:42:42:42:42:42:42",
-                    "fqdn-fwd": false,
-                    "fqdn-rev": true,
-                    "hostname": "myhost.example.com.",
-                    "hw-address": "08:08:08:08:08:08",
-                    "iaid": 1,
-                    "ip-address": "2001:db8:2::1",
-                    "preferred-lft": 500,
-                    "state": 0,
-                    "subnet-id": 44,
-                    "type": "IA_NA",
-                    "valid-lft": 3600
-                },
-                {
-                    "cltt": 12345678,
-                    "duid": "21:21:21:21:21:21:21:21",
-                    "fqdn-fwd": false,
-                    "fqdn-rev": true,
-                    "hostname": "",
-                    "iaid": 1,
-                    "ip-address": "2001:db8:0:0:2::",
-                    "preferred-lft": 500,
-                    "prefix-len": 80,
-                    "state": 0,
-                    "subnet-id": 44,
-                    "type": "IA_PD",
-                    "valid-lft": 3600
-                }
-            ]
-        },
-        "result": 0,
-        "text": "2 IPv6 lease(s) found."
+    "cmd-syntax": "{
+    \"command\": \"lease6-get-all\",
+    \"arguments\": {
+        \"subnets\": [ 1, 2, 3, 4 ]
+    }
+}",
+    "resp-syntax": "{
+    \"arguments\": {
+        \"leases\": [
+            {
+                \"cltt\": 12345678,
+                \"duid\": \"42:42:42:42:42:42:42:42\",
+                \"fqdn-fwd\": false,
+                \"fqdn-rev\": true,
+                \"hostname\": \"myhost.example.com.\",
+                \"hw-address\": \"08:08:08:08:08:08\",
+                \"iaid\": 1,
+                \"ip-address\": \"2001:db8:2::1\",
+                \"preferred-lft\": 500,
+                \"state\": 0,
+                \"subnet-id\": 44,
+                \"type\": \"IA_NA\",
+                \"valid-lft\": 3600
+            },
+            {
+                \"cltt\": 12345678,
+                \"duid\": \"21:21:21:21:21:21:21:21\",
+                \"fqdn-fwd\": false,
+                \"fqdn-rev\": true,
+                \"hostname\": \"\",
+                \"iaid\": 1,
+                \"ip-address\": \"2001:db8:0:0:2::\",
+                \"preferred-lft\": 500,
+                \"prefix-len\": 80,
+                \"state\": 0,
+                \"subnet-id\": 44,
+                \"type\": \"IA_PD\",
+                \"valid-lft\": 3600
+            }
+        ]
     },
+    \"result\": 0,
+    \"text\": \"2 IPv6 lease(s) found.\"
+}",
     "resp-comment": "The lease6-get-all command may result in very large responses."
-}
+}
\ No newline at end of file
index 91f628c9909216d18a1be31f0a032b8c53e65801..646c7eafbc5be8ba238c62816e0b26d9279d865f 100644 (file)
@@ -5,12 +5,12 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-get",
-        "arguments": {
-            "ip-address": "2001:db8:1234:ab::",
-            "type": "IA_PD"
-        }
-    },
+    "cmd-syntax": "{
+  \"command\": \"lease6-get\",
+  \"arguments\": {
+    \"ip-address\": \"2001:db8:1234:ab::\",
+    \"type\": \"IA_PD\"
+  }
+}",
     "cmd-comment": "lease6-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 4ec68aa3eb562a21a49ab81575b36efe239fc8dd..26a7bb694d7a7c16ab01b6e7a749867cc0a1c330 100644 (file)
@@ -5,15 +5,16 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-update",
-        "arguments": {
-            "ip-address": "2001:db8::1",
-            "duid": "88:88:88:88:88:88:88:88",
-            "iaid": 7654321,
-            "hostname": "newhostname.example.org",
-            "subnet-id": 66,
-            "force-create": false
-        }
-    }
+    "cmd-syntax": "{
+  \"command\": \"lease6-update\",
+  \"arguments\": {
+    \"ip-address\": \"2001:db8::1\",
+    \"duid\": \"88:88:88:88:88:88:88:88\",
+    \"iaid\": 7654321,
+    \"hostname\": \"newhostname.example.org\",
+    \"subnet-id\": 66,
+    \"force-create\": false
+  }
+}
+"
 }
index 23c5dac64856c42004ec4997676f7c50e7a30705..ace82847b791b95d2a03437ee30060a304e8297d 100644 (file)
@@ -5,11 +5,11 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "lease_cmds",
-    "cmd-syntax": {
-        "command": "lease6-wipe",
-        "arguments": {
-            "subnet-id": 66
-        }
-    },
+    "cmd-syntax": "{
+  \"command\": \"lease6-wipe\",
+  \"arguments\": {
+    \"subnet-id\": 66
+  }
+}",
     "cmd-comment": "Note: not all backends support this command."
 }
index 6354aab41bee69af1432a057ef3e85603961e5bc..c6d9b8f2bcb8fb269a8e8d21345746cabc606616 100644 (file)
@@ -4,10 +4,10 @@
     "description": "See <xref linkend=\"command-leases-reclaim\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "leases-reclaim",
-        "arguments": {
-            "remove": true
-        }
+    "cmd-syntax": "{
+    \"command\": \"leases-reclaim\",
+    \"arguments\": {
+        \"remove\": true
     }
+}"
 }
index 66535c3727ea0805659673f3ddd8b83f72a6decb..3b881a990a61f57c5b514343629c564cd7bbc506 100644 (file)
@@ -4,9 +4,9 @@
     "description": "See <xref linkend=\"command-libreload\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.2.0",
-    "cmd-syntax": {
-        "command": "libreload",
-        "arguments": { }
-    },
+    "cmd-syntax": "{
+    \"command\": \"libreload\",
+    \"arguments\": { }
+}",
     "cmd-comment": "The server will respond with a result of 0 indicating success, or 1 indicating a failure."
 }
index a0fae1e17dd648e1a5a82f309dad19dc3aeea90b..f0318c6f9d3ba7216bf1d16daeb63d6b4fde1129 100644 (file)
@@ -4,9 +4,9 @@
     "description": "See <xref linkend=\"command-list-commands\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "list-commands",
-        "arguments": { }
-    },
+    "cmd-syntax": "{
+    \"command\": \"list-commands\",
+    \"arguments\": { }
+}",
     "cmd-comment": "The server will respond with a list of all supported commands."
 }
index c12cf96ca092b885a1b2ad40930a7f6f2541c770..c6fc25b814bde66948d77ac49693943f6172aaa0 100644 (file)
@@ -5,42 +5,42 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-add",
-        "arguments": {
-            "shared-networks": [ {
-                "name": "floor13",
-                "subnet4": [
+    "cmd-syntax": "{
+    \"command\": \"network4-add\",
+    \"arguments\": {
+        \"shared-networks\": [ {
+            \"name\": \"floor13\",
+            \"subnet4\": [
+            {
+                \"id\": 100,
+                \"pools\": [ { \"pool\": \"192.0.2.2-192.0.2.99\" } ],
+                \"subnet\": \"192.0.2.0/24\",
+                \"option-data\": [
                     {
-                        "id": 100,
-                        "pools": [ { "pool": "192.0.2.2-192.0.2.99" } ],
-                        "subnet": "192.0.2.0/24",
-                        "option-data": [
-                            {
-                                "name": "routers",
-                                "data": "192.0.2.1"
-                            }
-                        ]
-                    },
+                        \"name\": \"routers\",
+                        \"data\": \"192.0.2.1\"
+                    }
+                ]
+            },
+            {
+                \"id\": 101,
+                \"pools\": [ { \"pool\": \"192.0.3.2-192.0.3.99\" } ],
+                \"subnet\": \"192.0.3.0/24\",
+                \"option-data\": [
                     {
-                        "id": 101,
-                        "pools": [ { "pool": "192.0.3.2-192.0.3.99" } ],
-                        "subnet": "192.0.3.0/24",
-                        "option-data": [
-                            {
-                                "name": "routers",
-                                "data": "192.0.3.1"
-                            }
-                        ]
-                    } ]
+                        \"name\": \"routers\",
+                        \"data\": \"192.0.3.1\"
+                    }
+                ]
             } ]
-        }
-    },
-    "resp-syntax": {
-        "arguments": {
-            "shared-networks": [ { "name": "floor13" } ]
-        },
-        "result": 0,
-        "text": "A new IPv4 shared network 'floor13' added"
+        } ]
     }
+}",
+    "resp-syntax": "{
+    \"arguments\": {
+        \"shared-networks\": [ { \"name\": \"floor13\" } ]
+    },
+    \"result\": 0,
+    \"text\": \"A new IPv4 shared network 'floor13' added\"
+}"
 }
index b9b389aa3d53b31ae10d0140dc159ddd03ff2051..df747a05da415cdda5d66779136f89da54f251b5 100644 (file)
@@ -5,21 +5,21 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-del",
-        "arguments": {
-            "name": "floor13"
-        }
-    },
-    "resp-syntax": {
-        "arguments": {
-            "shared-networks": [
-                {
-                    "name": "floor13"
-                }
-            ]
-        },
-        "result": 0,
-        "text": "IPv4 shared network 'floor13' deleted"
+    "cmd-syntax": "{
+    \"command\": \"network4-del\",
+    \"arguments\": {
+        \"name\": \"floor13\"
     }
+}",
+    "resp-syntax": "{
+    \"arguments\": {
+        \"shared-networks\": [
+            {
+                \"name\": \"floor13\"
+            }
+        ]
+    },
+    \"result\": 0,
+    \"text\": \"IPv4 shared network 'floor13' deleted\"
+}"
 }
index ba25c8ae93419009da4caa0d7c6e7b9aac794377..83c91dd0581d934bf4b553175f659604a47ee754 100644 (file)
@@ -5,41 +5,43 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-get",
-        "arguments": {
-            "name": "floor13"
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Info about IPv4 shared network 'floor13' returned",
-        "arguments": {
-            "shared-networks": [
+    "cmd-syntax": "{
+    \"command\": \"network4-get\",
+    \"arguments\": {
+        \"name\": \"floor13\"
+    }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Info about IPv4 shared network 'floor13' returned\",
+    \"arguments\": {
+        \"shared-networks\": [
+        {
+            \"match-client-id\": true,
+            \"name\": \"floor13\",
+            \"option-data\": [ ],
+            \"rebind-timer\": 90,
+            \"relay\": {
+                \"ip-address\": \"0.0.0.0\"
+            },
+            \"renew-timer\": 60,
+            \"reservation-mode\": \"all\",
+            \"subnet4\": [
+                {
+                    \"subnet\": \"192.0.2.0/24\",
+                    \"id\": 5,
+                    // many other subnet specific details here
+                },
                 {
-                    "match-client-id": true,
-                    "name": "floor13",
-                    "option-data": [ ],
-                    "rebind-timer": 90,
-                    "relay": {
-                        "ip-address": "0.0.0.0"
-                    },
-                    "renew-timer": 60,
-                    "reservation-mode": "all",
-                    "subnet4": [
-                        {
-                            "subnet": "192.0.2.0/24",
-                            "id": 5
-                        },
-                        {
-                            "id": 6,
-                            "subnet": "192.0.3.0/31"
-                        }
-                    ],
-                    "valid-lifetime": 120
+                    \"id\": 6,
+                    \"subnet\": \"192.0.3.0/31\",
+                    // many other subnet specific details here
                 }
-            ]
+            ],
+            \"valid-lifetime\": 120
         }
-    },
+        ]
+    }
+}",
     "resp-comment": "Note that the actual response contains many additional fields that are omitted here for clarity."
 }
index eed2fe8a917cdbb0c320d86875df26e69a51423c..77e8da9412aa04b28119872b70870793baae2d65 100644 (file)
@@ -5,14 +5,17 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "resp-syntax": {
-        "arguments": {
-            "shared-networks": [
-                { "name": "floor1" },
-                { "name": "office" }
-            ]
-        },
-        "result": 0,
-        "text": "2 IPv4 network(s) found"
-    }
+    "cmd-syntax": "{
+    \"command\": \"network4-list\"
+}",
+    "resp-syntax": "{
+    \"arguments\": {
+        \"shared-networks\": [
+            { \"name\": \"floor1\" },
+            { \"name\": \"office\" }
+        ]
+    },
+    \"result\": 0,
+    \"text\": \"2 IPv4 network(s) found\"
+}"
 }
index c16c2b5c0fd50ce804dda6b9e56552dc923b8518..f1e326516728c763a7ecdf5cff9524fa2747e718 100644 (file)
@@ -5,15 +5,15 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-subnet-add",
-        "arguments": {
-            "name": "floor13",
-            "id": 5
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network 'floor1'"
+    "cmd-syntax": "{
+    \"command\": \"network4-subnet-add\",
+    \"arguments\": {
+        \"name\": \"floor13\",
+        \"id\": 5
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now part of shared network 'floor1'\"
+}"
 }
index 5c454aae8bbd3803b3d983ef43c27e1e7d45742c..d417f4f66333b65a4c66ee6e4b7e6e9ff1af1f0f 100644 (file)
@@ -5,15 +5,15 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-subnet-del",
-        "arguments": {
-            "name": "floor13",
-            "id": 5
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network 'floor13'"
+    "cmd-syntax": "{
+    \"command\": \"network4-subnet-del\",
+    \"arguments\": {
+        \"name\": \"floor13\",
+        \"id\": 5
     }
+ }",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv4 subnet 10.0.0.0/8 (id 5) is now removed from shared network 'floor13'\"
+}"
 }
index 96c57421003c1ad74d12783516b8bf501b9ba5c4..b3ddab8e90e4a8dc23d14e5c6e8ffa2861ab267a 100644 (file)
@@ -1,47 +1,47 @@
 {
-    "name": "network6-add",
+     "name": "network6-add",
     "brief": "The network6-add command is used to add a new shared network.",
     "description": "See <xref linkend=\"idp75\"/>",
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-add",
-        "arguments": {
-            "shared-networks": [ {
-                "name": "floor13",
-                "subnet4": [
+    "cmd-syntax": "{
+    \"command\": \"network4-add\",
+    \"arguments\": {
+        \"shared-networks\": [ {
+            \"name\": \"floor13\",
+            \"subnet4\": [
+            {
+                \"id\": 100,
+                \"pools\": [ { \"pool\": \"192.0.2.2-192.0.2.99\" } ],
+                \"subnet\": \"192.0.2.0/24\",
+                \"option-data\": [
                     {
-                        "id": 100,
-                        "pools": [ { "pool": "192.0.2.2-192.0.2.99" } ],
-                        "subnet": "192.0.2.0/24",
-                        "option-data": [
-                            {
-                                "name": "routers",
-                                "data": "192.0.2.1"
-                            }
-                        ]
-                    },
+                        \"name\": \"routers\",
+                        \"data\": \"192.0.2.1\"
+                    }
+                ]
+            },
+            {
+                \"id\": 101,
+                \"pools\": [ { \"pool\": \"192.0.3.2-192.0.3.99\" } ],
+                \"subnet\": \"192.0.3.0/24\",
+                \"option-data\": [
                     {
-                        "id": 101,
-                        "pools": [ { "pool": "192.0.3.2-192.0.3.99" } ],
-                        "subnet": "192.0.3.0/24",
-                        "option-data": [
-                            {
-                                "name": "routers",
-                                "data": "192.0.3.1"
-                            }
-                        ]
-                    } ]
+                        \"name\": \"routers\",
+                        \"data\": \"192.0.3.1\"
+                    }
+                ]
             } ]
-        }
-    },
-    "cmd-comment": "The network6-add uses the same syntax for both the query and the response. However, there are some parameters that are IPv4-only (e.g. match-client-id) and some are IPv6-only (e.g. interface-id).",
-    "resp-syntax": {
-        "arguments": {
-            "shared-networks": [ { "name": "floor13" } ]
-        },
-        "result": 0,
-        "text": "A new IPv4 shared network 'floor13' added"
+        } ]
     }
+}",
+    "cmd-comment": "The network6-add uses the same syntax for both the query and the response. However, there are some parameters that are IPv4-only (e.g. match-client-id) and some are IPv6-only (e.g. interface-id).",
+    "resp-syntax": "{
+    \"arguments\": {
+        \"shared-networks\": [ { \"name\": \"floor13\" } ]
+    },
+    \"result\": 0,
+    \"text\": \"A new IPv4 shared network 'floor13' added\"
+}"
 }
index e0f707bc5975e68d5e9109f02627cce853c67bbf..7217336f840e5265eb2f7977daa2a0985871eec4 100644 (file)
@@ -5,18 +5,19 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-del",
-        "arguments": {
-            "name": "floor13"
-        }
-    },
-    "cmd-comment": "The network6-del command uses exactly the same syntax for both the command and the response.",
-    "resp-syntax": {
-        "command": "network4-del",
-        "arguments": {
-            "name": "floor13",
-            "subnets-action": "delete"
-        }
+    "cmd-syntax": "{
+    \"command\": \"network4-del\",
+    \"arguments\": {
+        \"name\": \"floor13\"
     }
+}",
+    "cmd-comment": "The network6-del command uses exactly the same syntax for
+                    both the command and the response.",
+    "resp-syntax": "{
+    \"command\": \"network4-del\",
+    \"arguments\": {
+        \"name\": \"floor13\",
+        \"subnets-action\": \"delete\"
+    }
+}"
 }
index f113d76edabc835ef05bba943ae224728b17bce9..99807eaadc16dccba923e5c6fcd06a2fd723fd32 100644 (file)
@@ -5,41 +5,43 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-get",
-        "arguments": {
-            "name": "floor13"
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Info about IPv4 shared network 'floor13' returned",
-        "arguments": {
-            "shared-networks": [
+    "cmd-syntax": "{
+    \"command\": \"network4-get\",
+    \"arguments\": {
+        \"name\": \"floor13\"
+    }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Info about IPv4 shared network 'floor13' returned\",
+    \"arguments\": {
+        \"shared-networks\": [
+        {
+            \"match-client-id\": true,
+            \"name\": \"floor13\",
+            \"option-data\": [ ],
+            \"rebind-timer\": 90,
+            \"relay\": {
+                \"ip-address\": \"0.0.0.0\"
+            },
+            \"renew-timer\": 60,
+            \"reservation-mode\": \"all\",
+            \"subnet4\": [
+                {
+                    \"subnet\": \"192.0.2.0/24\",
+                    \"id\": 5,
+                    // many other subnet specific details here
+                },
                 {
-                    "match-client-id": true,
-                    "name": "floor13",
-                    "option-data": [ ],
-                    "rebind-timer": 90,
-                    "relay": {
-                        "ip-address": "0.0.0.0"
-                    },
-                    "renew-timer": 60,
-                    "reservation-mode": "all",
-                    "subnet4": [
-                        {
-                            "subnet": "192.0.2.0/24",
-                            "id": 5
-                        },
-                        {
-                            "id": 6,
-                            "subnet": "192.0.3.0/31"
-                        }
-                    ],
-                    "valid-lifetime": 120
+                    \"id\": 6,
+                    \"subnet\": \"192.0.3.0/31\",
+                    // many other subnet specific details here
                 }
-            ]
+            ],
+            \"valid-lifetime\": 120
         }
-    },
+        ]
+    }
+}",
     "resp-comment": "Note that the actual response contains many additional fields that are omitted here for clarity."
 }
index fa6d0d43d2ba249a23436e20193016e061a36834..4febd2ce3a9c53292becbc2a73f1bd634e25e4b8 100644 (file)
@@ -5,15 +5,18 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
+    "cmd-syntax": "{
+    \"command\": \"network4-list\"
+}",
     "cmd-comment": "network6-list follows exactly the same syntax for both the query and the response.",
-    "resp-syntax": {
-        "arguments": {
-            "shared-networks": [
-                { "name": "floor1" },
-                { "name": "office" }
-            ]
-        },
-        "result": 0,
-        "text": "2 IPv4 network(s) found"
-    }
+    "resp-syntax": "{
+    \"arguments\": {
+        \"shared-networks\": [
+            { \"name\": \"floor1\" },
+            { \"name\": \"office\" }
+        ]
+    },
+    \"result\": 0,
+    \"text\": \"2 IPv4 network(s) found\"
+}"
 }
index 008eb96a696e001160933ec1ba5ca6a860d8d5e3..a23a45e6c27dddbaa594f92abfdd05731287f9ae 100644 (file)
@@ -5,16 +5,16 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-subnet-add",
-        "arguments": {
-            "name": "floor13",
-            "id": 5
-        }
-    },
-    "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'"
+    "cmd-syntax": "{
+    \"command\": \"network4-subnet-add\",
+    \"arguments\": {
+        \"name\": \"floor13\",
+        \"id\": 5
     }
+}",
+    "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'\"
+}"
 }
index 356490e7cd31cfd2c5e80a9bff73dadf2b9f0f3a..4b43e7fce2f374213c381a36e978ae04b26adc0d 100644 (file)
@@ -5,16 +5,16 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "network4-subnet-del",
-        "arguments": {
-            "name": "floor13",
-            "id": 5
-        }
-    },
-    "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'"
+    "cmd-syntax": "{
+    \"command\": \"network4-subnet-del\",
+    \"arguments\": {
+        \"name\": \"floor13\",
+        \"id\": 5
     }
+ }",
+    "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'\"
+}"
 }
index b11a0db6fffa6d670373ce4a6648f412769ef8bb..17818261ec1b655e2e6d6cc78fc32cd0dcfe4035 100644 (file)
@@ -1,34 +1,54 @@
 {
     "name": "reservation-add",
-    "brief": "adds a new host reservation. The reservation may include IPv4 address, IPv6 addresses, IPv6 prefixes, various identifiers, a class the client will be assigned to, DHCPv4 and DHCPv6 options and more.",
+    "brief": "adds a new host reservation. The reservation may include IPv4 address,
+        IPv6 addresses, IPv6 prefixes, various identifiers, a class
+        the client will be assigned to, DHCPv4 and DHCPv6 options and
+        more.",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "hook": "host_cmds",
     "avail": "1.2.0",
     "description": "See <xref linkend=\"cmd-reservation-add\"/>",
 
-    "cmd-syntax": {
-        "command": "reservation-add",
-        "arguments": {
-            "reservation": {
-                "boot-file-name": "<string>",
-                "comment": "<string>",
-                "client-id": "<string>",
-                "circuit-id": "<string>",
-                "duid": "<string>",
-                "flex-id": "<string>",
-                "ip-address": "<string (IPv4 address)>",
-                "ip-addresses": [ "<comma separated strings>" ],
-                "hw-address": "<string>",
-                "hostname": "<string>",
-                "next-server": "<string (IPv4 address)>",
-                "option-data-list": [ "<comma separated structures defining options>" ],
-                "prefixes": [ "<comma separated IPv6 prefixes>" ],
-                "reservation-client-classes": [ "<comma separated strings>" ],
-                "server-hostname": "<string>",
-                "subnet-id": "<integer>",
-                "user-context": "<any valid JSON>"
-            }
+    "cmd-syntax": "{
+    \"command\": \"reservation-add\",
+    \"arguments\": {
+        \"reservation\": {
+            \"boot-file-name\": <string>,
+            \"comment\": <string>
+            \"client-id\": <string>,
+            \"circuit-id\": <string>,
+            \"duid\": <string>,
+            \"flex-id\": <string>,
+            \"ip-address\": <string (IPv4 address)>,
+            \"ip-addresses\": [ <comma separated strings> ],
+            \"hw-address\": <string>,
+            \"hostname\": <string>,
+            \"next-server\": <string (IPv4 address)>,
+            \"option-data-list\": [ <comma separated structures defining options> ],
+            \"prefixes\": [ <comma separated IPv6 prefixes> ],
+            \"reservation-client-classes\": [ <comma separated strings> ],
+            \"server-hostname\": <string>,
+            \"subnet-id\": <integer>,
+            \"user-context\": <any valid JSON>,
         }
-    },
-    "cmd-comment": "Note the ip-address, client-id, next-server, server-hostname and boot-file-name are IPv4 specific. duid, ip-addresses and prefixes are IPv6 specific."
+    }
+}",
+    "cmd-comment": "Note the ip-address, client-id, next-server, server-hostname and
+boot-file-name are IPv4 specific. duid, ip-addresses and prefixes are
+IPv6 specific.",
+
+    "resp-syntax": "
+{
+    \"result\": <integer>,
+    \"text\": <string>
+}",
+    "resp-comment": "Result is an integer representation of the status. Currently supported statuses are:
+<itemizedlist>
+  <listitem><para>0 - success</para></listitem>
+  <listitem><para>1 - error</para></listitem>
+  <listitem><para>2 - unsupported</para></listitem>
+  <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)
+  </para></listitem>
+</itemizedlist>"
 }
+
index 46c8fc71640625fd91f52e850989d1b1c4fdaf3d..48d5938bc1cc146b8b433892516f602b5a8932b1 100644 (file)
@@ -5,14 +5,14 @@
     "hook": "host_cmds",
     "avail": "1.2.0",
 
-    "cmd-syntax": {
-        "command": "reservation-del",
-        "arguments": {
-            "subnet-id": "<integer>",
-            "ip-address": "<string>",
-            "identifier-type": "<one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>",
-            "identifier": "<string>"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"reservation-del\",
+    \"arguments\": {
+        \"subnet-id\": <integer>,
+        \"ip-address\": <string>,
+        \"identifier-type\": <one of \"hw-address\", \"duid\", \"circuit-id\", \"client-id\" and \"flex-id\">,
+        \"identifier\": <string>
+    }
+}",
     "cmd-comment": "The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier)."
 }
index b3bcca3a73f6af1560c625e38caef749043a8e32..75b9ef85df40d0af33a8fdeee781837c7fa75953 100644 (file)
@@ -5,11 +5,10 @@
     "hook": "host_cmds",
     "avail": "1.6.0",
 
-    "cmd-syntax": {
-        "command": "reservation-get-all",
-        "arguments": {
-            "subnet-id": "<integer>"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"reservation-get-all\",
+    \"arguments\": {
+        \"subnet-id\": <integer>
+}",
     "resp-comment": "reservation-get-all command may result in very large responses."
 }
index 3dfa7bbdf9411c4dbf33c5ef19ab5a9bf9d4e46d..04796acec70869d236cbbdbf1d109d2167dacd53 100644 (file)
@@ -5,14 +5,14 @@
     "hook": "host_cmds",
     "avail": "1.6.0",
 
-    "cmd-syntax": {
-        "command": "reservation-get-page",
-        "arguments": {
-            "subnet-id": "<integer>",
-            "limit": "<integer>",
-            "source-index": "<integer>",
-            "from": "<integer>"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"reservation-get-page\",
+    \"arguments\": {
+        \"subnet-id\": <integer>,
+        \"limit\": <integer>,
+        \"source-index\": <integer>,
+        \"from\": <integer>
+    }
+}",
     "cmd-comment": "the subnet id and the page size limit are mandatory. The source index and from host id are optional and default to 0. Values to use to next the next page are returned in responses in a next map."
 }
index d0cb797b6b3e0e5bd2c112642180b9ad8b5fba01..ef359b0928c602ac9caacc45380c9880932100f1 100644 (file)
@@ -5,40 +5,41 @@
     "hook": "host_cmds",
     "avail": "1.2.0",
 
-    "cmd-syntax": {
-        "command": "reservation-get",
-        "arguments": {
-            "subnet-id": "<integer>",
-            "identifier-type": "<string with one value out of: hw-address|duid|circuit-id|client-id|flex-id>",
-            "identifier": "<string>"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"reservation-get\",
+    \"arguments\": {
+        \"subnet-id\": <integer>,
+        \"identifier-type\": <string with one value out of: hw-address|duid|circuit-id|client-id|flex-id>,
+        \"identifier\": <string>;
+    }
+}",
 
     "cmd-comment": "The host reservation can be identified by either (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier).",
 
-    "resp-syntax": {
-        "result": "<integer>",
-        "text": "<string>",
-        "arguments": {
-            "boot-file-name": "<string>",
-        "comment": "<string>",
-            "client-id": "<string>",
-            "circuit-id": "<string>",
-            "duid": "<string>",
-            "flex-id": "<string>",
-            "ip-address": "<string (IPv4 address)>",
-            "ip-addresses": [ "<comma separated strings>" ],
-            "hw-address": "<string>",
-            "hostname": "<string>",
-            "next-server": "<string (IPv4 address)>",
-            "option-data-list": [ "<comma separated structures defining options>" ],
-            "prefixes": [ "<comma separated IPv6 prefixes>" ],
-            "reservation-client-classes": [ "<comma separated strings>" ],
-            "server-hostname": "<string>",
-            "subnet-id": "<integer>",
-            "user-context": "<any valid JSON>"
-        }
-    },
+    "resp-syntax": "{
+    \"result\": <integer>,
+    \"text\": <string>,
+    \"arguments\": {
+        \"boot-file-name\": <string>,
+        \"comment\": <string>
+        \"client-id\": <string>,
+        \"circuit-id\": <string>,
+        \"duid\": <string>,
+        \"flex-id\": <string>,
+        \"ip-address\": <string (IPv4 address)>,
+        \"ip-addresses\": [ <comma separated strings> ],
+        \"hw-address\": <string>,
+        \"hostname\": <string>,
+        \"next-server\": <string (IPv4 address)>,
+        \"option-data-list\": [ <comma separated structures defining options> ],
+        \"prefixes\": [ <comma separated IPv6 prefixes> ],
+        \"reservation-client-classes\": [ <comma separated strings> ],
+        \"server-hostname\": <string>,
+        \"subnet-id\": <integer>,
+        \"user-context\": <any valid JSON>,
+    }
+}",
 
-    "resp-comment": "Arguments object appear only if a host is found. Many fields in the arguments object appear only if specific field is set."
+    "resp-comment": "Arguments object appear only if a host is found. Many fields in the arguments
+object appear only if specific field is set."
 }
index 21b1934e906d99a05f7510cc2c14bd1c35143a48..6c9cc305b41cb0c2222d69c492d72f7140f27987 100644 (file)
@@ -4,5 +4,9 @@
     "description": "See <xref linkend=\"command-shutdown\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
     "avail": "1.0.0",
-    "cmd-comment": "The server will respond with a confirmation that the shutdown procedure has been initiated."
+    "cmd-syntax": "{
+    \"command\": \"shutdown\"
+}",
+    "cmd-comment": "The server will respond with a confirmation that the shutdown
+                    procedure has been initiated."
 }
index 5ade9fcb741e6623e841a626274c3a0c73dbac04..b155d9c7ffaea498cc1105d46f91863317b52ed3 100644 (file)
@@ -1,28 +1,29 @@
 {
     "name": "stat-lease4-get",
-    "brief": "The stat-lease4-get command fetches lease statistics for a range of known IPv4 subnets.",
+    "brief": "The stat-lease4-get command fetches lease statistics for a range
+              of known IPv4 subnets.",
     "description": "See <xref linkend=\"command-stat-lease4-get\"/>",
     "support": [ "kea-dhcp4" ],
     "avail": "1.4.0",
     "hook": "stat_cmds",
-    "cmd-syntax": {
-        "command": "stat-lease4-get"
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "stat-lease4-get: 2 rows found",
-        "arguments": {
-            "result-set": {
-                "columns": [ "subnet-id",
-                             "total-addresses",
-                             "assigned-addresses",
-                             "declined-addresses" ],
-                "rows": [
-                    [ 10, 256, 111, 0 ],
-                    [ 20, 4098, 2034, 4 ]
-                ],
-                "timestamp": "2018-05-04 15:03:37.000000"
-            }
-        }
+    "cmd-syntax": "{
+  \"command\": \"stat-lease4-get\"
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"stat-lease4-get: 2 rows found\",
+    \"arguments\": {
+      \"result-set\": {
+        \"columns\": [ \"subnet-id\",
+                       \"total-addresses\",
+                       \"assigned-addresses\",
+                       \"declined-addresses\" ]
+        \"rows\": [
+          [ 10, 256, 111, 0 ],
+          [ 20, 4098, 2034, 4 ]
+        ],
+      \"timestamp\": \"2018-05-04 15:03:37.000000\"
+      }
     }
+  }"
 }
index 70f9e6f4c6c67fe5083c78b783dc1f062dc799db..3834d7320cf78c35a31124c35f4cdd6223de7bec 100644 (file)
@@ -1,29 +1,30 @@
 {
     "name": "stat-lease6-get",
-    "brief": "The stat-lease6-get command fetches lease statistics for a range of known IPv6 subnets.",
+    "brief": "The stat-lease6-get command fetches lease statistics for a range
+              of known IPv6 subnets.",
     "description": "See <xref linkend=\"command-stat-lease6-get\"/>",
     "support": [ "kea-dhcp6" ],
     "avail": "1.4.0",
     "hook": "stat_cmds",
-    "cmd-syntax": {
-        "command": "stat-lease6-get",
-        "arguments": {
-            "subnet-id" : 10
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "stat-lease6-get: 2 rows found",
-        "arguments": {
-            "result-set": {
-                "columns": [ "subnet-id", "total-nas", "assigned-nas", "declined-nas", "total-pds", "assigned-pds" ],
-                "rows": [
-                    [ 10, 4096, 2400, 3, 0, 0],
-                    [ 20, 0, 0, 0, 1048, 233 ],
-                    [ 30, 256, 60, 0, 1048, 15 ]
-                ],
-                "timestamp": "2018-05-04 15:03:37.000000"
-            }
-        }
+    "cmd-syntax": "{
+  \"command\": \"stat-lease6-get\",
+  \"arguments\": {
+    \"subnet-id\" : 10
+  }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"stat-lease6-get: 2 rows found\",
+    \"arguments\": {
+      \"result-set\": {
+        \"columns\": [ \"subnet-id\", \"total-nas\", \"assigned-nas\", \"declined-nas\", \"total-pds\", \"assigned-pds\" ]
+        \"rows\": [
+          [ 10, 4096, 2400, 3, 0, 0],
+          [ 20, 0, 0, 0, 1048, 233 ]
+          [ 30, 256, 60, 0, 1048, 15 ]
+        ],
+      \"timestamp\": \"2018-05-04 15:03:37.000000\"
+      }
     }
+  }"
 }
index 2dd7218d2e0967bd4e1c19c667119a349596654c..fcfdce1161e36336fcc8aa2547246017d93ac835 100644 (file)
@@ -4,9 +4,9 @@
     "description": "See <xref linkend=\"command-statistic-get-all\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-get-all",
-        "arguments": { }
-    },
+    "cmd-syntax": "{
+    \"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)."
 }
index aa2fb895b569159b808bb9143545bada45c36184..97cf96ef87cb8bec04a3383d48250943a70b8ed1 100644 (file)
@@ -4,11 +4,11 @@
     "description": "See <xref linkend=\"command-statistic-get\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-get",
-        "arguments": {
-            "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."
+    "cmd-syntax": "{
+    \"command\": \"statistic-get\",
+    \"arguments\": {
+        \"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."
 }
index 4d25d191ef6a5f4e7ff94cd21ba78adf833351b8..b1cae435b3935d81238523a58f63f9278be9fd02 100644 (file)
@@ -4,9 +4,9 @@
     "description": "See <xref linkend=\"command-statistic-remove-all\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-remove-all",
-        "arguments": { }
-    },
+    "cmd-syntax": "{
+    \"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."
 }
index e625d6ae2af46639ecbd24104be21cedd946650e..8e3eaa6874b4424ec8edcc1a7ca33f38cdfebba9 100644 (file)
@@ -4,11 +4,11 @@
     "description": "See <xref linkend=\"command-statistic-remove\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-remove",
-        "arguments": {
-            "name": "pkt4-received"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"statistic-remove\",
+    \"arguments\": {
+        \"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."
 }
index 5f2df3cf02143a874e033d341478b6e8949643a9..e87ab26c687e64935280b6c44f41ecb26de436f6 100644 (file)
@@ -4,9 +4,9 @@
     "description": "See <xref linkend=\"command-statistic-reset-all\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-reset-all",
-        "arguments": { }
-    },
+    "cmd-syntax": "{
+    \"command\": \"statistic-reset-all\",
+    \"arguments\": { }
+}",
     "cmd-comment": "If the operation is 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 3a5cd9f68afca902ada733a08c981feb7beb954e..c06162aef434c9300d7761bfbb519ae198b368b3 100644 (file)
@@ -4,11 +4,11 @@
     "description": "See <xref linkend=\"command-statistic-reset\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6" ],
     "avail": "1.0.0",
-    "cmd-syntax": {
-        "command": "statistic-reset",
-        "arguments": {
-            "name": "pkt4-received"
-        }
-    },
+    "cmd-syntax": "{
+    \"command\": \"statistic-reset\",
+    \"arguments\": {
+        \"name\": \"pkt4-received\"
+    }
+}",
     "cmd-comment": "If the specific statistic is found and reset 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."
 }
index d87201cf35dcfcb3a0d465790f5bfadb29d619ce..14daab1bb800bc2c918a1dde185d8455b5cf5cdf 100644 (file)
@@ -5,25 +5,26 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet4-add",
-        "arguments": {
-            "subnets": [ {
-                "id": 123,
-                "subnet": "10.20.30.0/24"
-            } ]
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv4 subnet added",
-        "arguments": {
-            "subnets": [
-                {
-                    "id": 123,
-                    "subnet": "10.20.30.0/24"
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet4-add\",
+    \"arguments\": {
+        \"subnets\": [ {
+            \"id\": 123,
+            \"subnet\": \"10.20.30.0/24\",
+            ...
+        } ]
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv4 subnet added\",
+    \"arguments\": {
+        \"subnets\": [
+            {
+                \"id\": 123,
+                \"subnet\": \"10.20.30.0/24\"
+            }
+        ]
+    }
+}"
 }
index 1493939d23c927a200f654ed4eab00a94b11928a..3adf0d59a7ffb52bd62cf7896265ed2d5e0cb376 100644 (file)
@@ -5,22 +5,22 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet4-del",
-        "arguments": {
-            "id": 123
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv4 subnet 192.0.2.0/24 (id 123) deleted",
-        "arguments": {
-            "subnets": [
-                {
-                    "id": 123,
-                    "subnet": "192.0.2.0/24"
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet4-del\",
+    \"arguments\": {
+        \"id\": 123
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv4 subnet 192.0.2.0/24 (id 123) deleted\",
+    \"arguments\": {
+        \"subnets\": [
+            {
+                \"id\": 123,
+                \"subnet\": \"192.0.2.0/24\"
+            }
+        ]
+    }
+}"
 }
index d918304f828fcd566582f1b087cd730efa4ed0b8..69d52202dc8c4588a4264a8a7ca6afe3285853ff 100644 (file)
@@ -5,24 +5,26 @@
     "support": [ "kea-dhcp4" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet4-get",
-        "arguments": {
-            "id": 10
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Info about IPv4 subnet 10.0.0.0/8 (id 10) returned",
-        "arguments": {
-            "subnets": [
-                {
-                    "subnet": "10.0.0.0/8",
-                    "id": 1,
-                    "option-data": [
-                    ]
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet4-get\",
+    \"arguments\": {
+        \"id\": 10
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Info about IPv4 subnet 10.0.0.0/8 (id 10) returned\",
+    \"arguments\": {
+        \"subnets\": [
+            {
+                \"subnet\": \"10.0.0.0/8\",
+                \"id\": 1,
+                \"option-data\": [
+                    ....
+                ]
+                ...
+            }
+        ]
+    }
+}"
 }
index 23d469af9b414b85cd5970392264e5f98d8931cb..e514cbfd56c2c520cbd531b794c4b56956341e13 100644 (file)
@@ -5,24 +5,23 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet4-list"
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "2 IPv4 subnets found",
-        "arguments": {
-            "subnets": [
-                {
-                    "id": 10,
-                    "subnet": "10.0.0.0/8"
-                },
-                {
-                    "id": 100,
-                    "subnet": "192.0.2.0/24"
-                }
-            ]
+    "cmd-syntax": "{
+    \"command\": \"subnet4-list\"
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"2 IPv4 subnets found\",
+    \"arguments\": {
+    \"subnets\": [
+        {
+            \"id\": 10,
+            \"subnet\": \"10.0.0.0/8\"
+        },
+        {
+            \"id\": 100,
+            \"subnet\": \"192.0.2.0/24\"
         }
-    },
+    ]
+}",
     "resp-comment": "If no IPv4 subnets are found, an error code is returned along with the error description."
-}
+}
\ No newline at end of file
index b7c561aa1059648b21b16752e52a9ec635c7f6b7..5926b47dc573aa768dc06368117f30fa83a3c9d9 100644 (file)
@@ -5,25 +5,26 @@
     "support": [ "kea-dhcp4"],
     "avail": "1.6.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet4-update",
-        "arguments": {
-            "subnets": [ {
-                "id": 123,
-                "subnet": "10.20.30.0/24"
-            } ]
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv4 subnet updated",
-        "arguments": {
-            "subnets": [
-                {
-                    "id": 123,
-                    "subnet": "10.20.30.0/24"
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet4-update\",
+    \"arguments\": {
+        \"subnets\": [ {
+            \"id\": 123,
+            \"subnet\": \"10.20.30.0/24\",
+            ...
+        } ]
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv4 subnet updated\",
+    \"arguments\": {
+        \"subnets\": [
+            {
+                \"id\": 123,
+                \"subnet\": \"10.20.30.0/24\"
+            }
+        ]
+    }
+}"
 }
index 1371618732dae572f21c0a0b205633b3414e103c..727241f2462d6c689e03954d6480c0c604ca289e 100644 (file)
@@ -5,25 +5,26 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet6-add",
-        "arguments": {
-            "subnet6": [ {
-                "id": 234,
-                "subnet": "2001:db8:1::/64"
-            } ]
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv6 subnet added",
-        "arguments": {
-            "subnet6": [
-                {
-                    "id": 234,
-                    "subnet": "2001:db8:1::/64"
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet6-add\",
+    \"arguments\": {
+        \"subnet6\": [ {
+            \"id\": 234,
+            \"subnet\": \"2001:db8:1::/64\",
+            ...
+        } ]
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv6 subnet added\",
+    \"arguments\": {
+        \"subnet6\": [
+            {
+                \"id\": 234,
+                \"subnet\": \"2001:db8:1::/64\"
+            }
+        ]
+    }
+}"
 }
index a54879b2a273065a735b7edcc5cfa6698a435549..d95e48828ce3e7598a3b6c897ae59c9e8ca293e0 100644 (file)
@@ -5,20 +5,20 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet6-del",
-        "arguments": {
-            "id": 234
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv6 subnet 2001:db8:1::/64 (id 234) deleted",
-        "subnets": [
-            {
-                "id": 234,
-                "subnet": "2001:db8:1::/64"
-            }
-        ]
+    "cmd-syntax": "{
+    \"command\": \"subnet6-del\",
+    \"arguments\": {
+        \"id\": 234
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv6 subnet 2001:db8:1::/64 (id 234) deleted\",
+    \"subnets\": [
+        {
+            \"id\": 234,
+            \"subnet\": \"2001:db8:1::/64\"
+        }
+    ]
+}"
 }
index 3dcc1a83faabb7ce1ea9d23557c4e734a6d548c8..cc9e921677128bb9a0963e1bf7f972c5e97fade5 100644 (file)
@@ -5,24 +5,26 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet6-get",
-        "arguments": {
-            "id": 11
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "Info about IPv6 subnet 2001:db8:1::/64 (id 11) returned",
-        "arguments": {
-            "subnets": [
-                {
-                    "subnet": "2001:db8:1::/64",
-                    "id": 1,
-                    "option-data": [
-                    ]
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet6-get\",
+    \"arguments\": {
+        \"id\": 11
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"Info about IPv6 subnet 2001:db8:1::/64 (id 11) returned\",
+    \"arguments\": {
+        \"subnets\": [
+            {
+                \"subnet\": \"2001:db8:1::/64\",
+                \"id\": 1,
+                \"option-data\": [
+                    ...
+                ]
+                ....
+            }
+        ]
+    }
+}"
 }
index 374b38e06fc723a87ac96d81a53e40954dfa43b9..fc95177c5791888a5f5147377f74a24626be9227 100644 (file)
@@ -5,24 +5,23 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.3.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet6-list"
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "2 IPv6 subnets found",
-        "arguments": {
-            "subnets": [
-                {
-                    "id": 11,
-                    "subnet": "2001:db8:1::/64"
-                },
-                {
-                    "id": 233,
-                    "subnet": "3000::/16"
-                }
-            ]
+    "cmd-syntax": "{
+    \"command\": \"subnet6-list\"
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"2 IPv6 subnets found\",
+    \"arguments\": {
+    \"subnets\": [
+        {
+            \"id\": 11,
+            \"subnet\": \"2001:db8:1::/64\"
+        },
+        {
+            \"id\": 233,
+            \"subnet\": \"3000::/16\"
         }
-    },
+    ]
+}",
     "resp-comment": "If no IPv6 subnets are found, an error code is returned along with the error description."
-}
+}
\ No newline at end of file
index 94f3fc1a82cc722b9202edde14bc0c72d09639bd..9360a377993d58b59c6a6fc45bd3f24315bed955 100644 (file)
@@ -5,25 +5,26 @@
     "support": [ "kea-dhcp6" ],
     "avail": "1.6.0",
     "hook": "subnet_cmds",
-    "cmd-syntax": {
-        "command": "subnet6-update",
-        "arguments": {
-            "subnet6": [ {
-                "id": 234,
-                "subnet": "2001:db8:1::/64"
-            } ]
-        }
-    },
-    "resp-syntax": {
-        "result": 0,
-        "text": "IPv6 subnet updated",
-        "arguments": {
-            "subnet6": [
-                {
-                    "id": 234,
-                    "subnet": "2001:db8:1::/64"
-                }
-            ]
-        }
+    "cmd-syntax": "{
+    \"command\": \"subnet6-update\",
+    \"arguments\": {
+        \"subnet6\": [ {
+            \"id\": 234,
+            \"subnet\": \"2001:db8:1::/64\",
+            ...
+        } ]
     }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"IPv6 subnet updated\",
+    \"arguments\": {
+        \"subnet6\": [
+            {
+                \"id\": 234,
+                \"subnet\": \"2001:db8:1::/64\"
+            }
+        ]
+    }
+}"
 }
index 1ab9c35cfe25c40b5e786e900bb37eab98c19008..e9c192c25f53e9bc20113ef4c38f23062208eebe 100644 (file)
@@ -1,7 +1,12 @@
 {
     "name": "version-get",
-    "brief": "The version-get command returns extended information about Kea version. The returned string is the same as if Kea would be run with -V command line option.",
+    "brief": "The version-get command returns extended information about
+              Kea version. The returned string is the same as if Kea would
+              be run with -V command line option.",
     "description": "See <xref linkend=\"command-version-get\"/>",
     "support": [ "kea-dhcp4", "kea-dhcp6", "kea-dhcp-ddns", "kea-ctrl-agent" ],
-    "avail": "1.2.0"
+    "avail": "1.2.0",
+    "cmd-syntax": "{
+    \"command\": \"version-get\"
+}"
 }