"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": ""
}
"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>
+}"
}
"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>
+}"
}
"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
+ }
+}"
}
"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\"
+}"
}
"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
+ }
+}"
}
"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 }
+}"
}
"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."
}
{
"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)."
}
"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."
}
{
"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."
}
{
"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."
}
{
"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."
}
{
"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>
}
+}"
}
"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\"
+}"
}
"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 <server> 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)\" }"
}
"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 >server< 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)\" }"
}
{
"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\"
}
+}"
}
"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
}
+}"
}
"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\"
+}"
}
{
"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."
}
"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."
}
{
"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>
}
+}"
}
"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."
}
"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
"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."
}
"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)."
}
"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
+ }
+}"
}
"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
+ }
+}"
}
"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)\" }"
}
"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."
}
"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)."
}
"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
"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
"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
+ }
+}
+"
}
"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."
}
"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
}
+}"
}
"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."
}
"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."
}
"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\"
+}"
}
"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\"
+}"
}
"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."
}
"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\"
+}"
}
"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'\"
+}"
}
"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'\"
+}"
}
{
- "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\"
+}"
}
"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\"
+ }
+}"
}
"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."
}
"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\"
+}"
}
"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'\"
+}"
}
"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'\"
+}"
}
{
"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>"
}
+
"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)."
}
"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."
}
"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."
}
"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."
}
"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."
}
{
"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\"
+ }
}
+ }"
}
{
"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\"
+ }
}
+ }"
}
"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)."
}
"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."
}
"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."
}
"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."
}
"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."
}
"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."
}
"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\"
+ }
+ ]
+ }
+}"
}
"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\"
+ }
+ ]
+ }
+}"
}
"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\": [
+ ....
+ ]
+ ...
+ }
+ ]
+ }
+}"
}
"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
"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\"
+ }
+ ]
+ }
+}"
}
"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\"
+ }
+ ]
+ }
+}"
}
"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\"
+ }
+ ]
+}"
}
"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\": [
+ ...
+ ]
+ ....
+ }
+ ]
+ }
+}"
}
"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
"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\"
+ }
+ ]
+ }
+}"
}
{
"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\"
+}"
}