- "brief": "This command is used to delete a global DHCPv4 parameter from a configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.",
- "description": "See <xref linkend=\"cmd-remote-global-parameter4-del\"/>",
+ "brief": "This command is used to delete a global DHCPv4 parameter from the configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.",
- "cmd-comment": "This command includes a list with exactly one name of the parameter to be deleted. The <command>remote</command> map contains specification of the backend from which the global parameter should be deleted. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command carries the list including exactly one name of the parameter to be deleted.",
"resp-syntax": "{
\"result\": 0,
- \"text\": \"DHCPv4 global parameter successfully deleted.\",
+ \"text\": \"DHCPv4 global parameter(s) deleted.\",
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command contains no arguments besides the optional <command>remote</command>.",
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains \"type\": \"mysql\".",
+}",
+ "cmd-comment": "This command carries a list including exactly one name of the parameter to be fetched.",
- "cmd-comment": "The <command>remote</command> map contains specification of the backend where global parameter should be set. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command carries multiple global parameters with their values. Care should be taken when specifying more than one parameter because in some cases only a subset of the parameters may be successfully stored in the database and other parameters may fail to be stored. In such cases the <command>remote-global-parameter4-get-all</command> may be useful to verify the contents of the database after the update.",
"resp-syntax": "{
\"result\": 0,
\"text\": \"DHCPv4 global parameter(s) successfully set.\"
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to delete a global DHCPv6 parameter from the configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-global-parameter6-del\",
+ \"arguments\": {
+ \"parameters\": [ <parameter name> ],
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command carries the list including exactly one name of the parameter to be deleted.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"DHCPv6 global parameter(s) deleted.\",
+ "resp-comment": "The returned response contains a list of maps. Each map contains a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is appended to each parameter and it provides database specific information associated with the returned objects."
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to fetch selected global parameter for the server from the specified database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-global-parameter6-get\"
+ \"arguments\": {
+ \"parameters\": [ <parameter name> ],
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command carries a list including exactly one name of the parameter to be fetched.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"DHCPv6 global parameter found.\",
+ \"arguments\": {
+ \"parameters\": {
+ <parameter name>: <parameter value>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ }
+ },
+ \"count\": 1
+ }
+}",
+ "resp-comment": "The returned response contains a map with a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is included and it provides database specific information associated with the returned object."
+ "cmd-comment": "This command carries multiple global parameters with their values. Care should be taken when specifying more than one parameter because in some cases only a subset of the parameters may be successfully stored in the database and other parameters may fail to be stored. In such cases the <command>remote-global-parameter6-get-all</command> may be useful to verify the contents of the database after the update.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"DHCPv6 global parameter(s) successfully set.\"
"brief": "This command is used to delete an IPv4 shared network from the configuration database.",
- "description": "See <xref linkend=\"cmd-remote-network4-del\"/>",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-network4-del\",
\"arguments\": {
- \"shared-networks\": [ {
- \"name\": <shared network name>
- } ],
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>
+ }
+ ],
\"subnets-action\": \"keep\" | \"delete\",
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not.",
"brief": "This command is used to fetch selected IPv4 shared network for the server from the specified database.",
- "description": "See <xref linkend=\"cmd-remote-network4-get\"/>",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-network4-get\"
\"arguments\": {
- \"shared-networks\": [ {
- \"name\": <shared network name>
- } ],
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>
+ }
+ ],
\"subnets-include\": \"full\" | \"no\",
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether subnets belonging to the shared network should also be returned. The <command>remote</command> map contains specification of the backend from which the shared network should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether the subnets belonging to the shared network should also be returned.",
- <the rest of the shared network information, potentially including subnets>
- } ],
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ },
+ <the rest of the shared network information, potentially including subnets>
+ }
+ ],
\"count\": 1
}
}",
- "resp-comment": "The metadata is included in the returned shared network definition and it provides database specific information associated with the returned object."
+ "resp-comment": "If the subnets are returned with the shared network they are carried in the <command>subnet4</command> list within the shared network definition. The metadata is included in the returned shared network definition and it provides the database specific information associated with the returned object."
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the shared networks should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command contains no arguments besides the optional <command>remote</command>.",
- "resp-comment": "The returned response contains a list of maps. Each map contains a shared network name and the metadata which provides database specific information associated with the shared networks. The returned list does not contain full definitions of the shared networks. Use <command>remote-network4-get</command> to fetch the full information about the selected shared networks."
+ "resp-comment": "The returned response contains the list of maps. Each map contains the shared network name and the metadata which provides database specific information associated with the shared network. The returned list does not contain full definitions of the shared networks. Use <command>remote-network4-get</command> to fetch the full information about the selected shared networks."
- "cmd-comment": "The provided list must contain exactly one shared network specification. It must not contain subnets (subnet4 parameter). The subnets are added to the shared network using <command>remote-subnet4-set</command> command. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The provided list must contain exactly one shared network specification. It must not contain subnets (\"subnet4\" parameter). The subnets are added to the shared network using <command>remote-subnet4-set</command> command.",
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to delete an IPv6 shared network from the configuration database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-network6-del\",
+ \"arguments\": {
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>
+ }
+ ],
+ \"subnets-action\": \"keep\" | \"delete\",
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not.",
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to fetch selected IPv6 shared network for the server from the specified database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-network6-get\"
+ \"arguments\": {
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>
+ }
+ ],
+ \"subnets-include\": \"full\" | \"no\",
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether the subnets belonging to the shared network should also be returned.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"IPv6 shared network found.\",
+ \"arguments\": {
+ \"shared-networks\": [
+ {
+ \"name\": <shared network name>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ },
+ <the rest of the shared network information, potentially including subnets>
+ }
+ ],
+ \"count\": 1
+ }
+}",
+ "resp-comment": "If the subnets are returned with the shared network they are carried in the <command>subnet6</command> list within the shared network definition. The metadata is included in the returned shared network definition and it provides the database specific information associated with the returned object."
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to fetch a list of all IPv6 shared networks from the configuration database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-network6-list\"
+ \"arguments\": {
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command contains no arguments besides the optional <command>remote</command>.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"2 IPv6 shared network(s) found.\",
+ \"arguments\": {
+ \"shared-networks\": [
+ {
+ \"name\": <first shared network name>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ }
+ },
+ {
+ \"name\": <second shared network name>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ }
+ }
+ ],
+ \"count\": 2
+ }
+}",
+ "resp-comment": "The returned response contains the list of maps. Each map contains the shared network name and the metadata which provides database specific information associated with the shared network. The returned list does not contain full definitions of the shared networks. Use <command>remote-network6-get</command> to fetch the full information about the selected shared networks."
+ "cmd-comment": "The provided list must contain exactly one shared network specification. It must not contain subnets (\"subnet6\" parameter). The subnets are added to the shared network using <command>remote-subnet6-set</command> command.",
- "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one option definition specification comprising an option name and code.",
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command contains no arguments besides the optional <command>remote</command>.",
"resp-comment": "The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects."
- "brief": "This command is used to fetch DHCPv4 option definition for the server from the specified database.",
- "description": "See <xref linkend=\"cmd-remote-option-def4-get\"/>",
+ "brief": "This command is used to fetch a DHCPv4 option definition from the configuration database.",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-option-def4-get\",
\"arguments\": {
- \"option-defs\": [ {
- \"code\": <option code>,
- \"space\": <option space>
- } ],
+ \"option-defs\": [
+ {
+ \"code\": <option code>,
+ \"space\": <option space>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "The desired option definition is identified by the pair of option code/space values. The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The desired option definition is identified by the pair of the option code/space values.",
"resp-syntax": "{
\"result\": 0,
- \"text\": \"DHCPv4 option definition 222 in 'dhcp4' found.\",
- "brief": "This command is used to create or update DHCPv4 option definition for the server in the specified database.",
- "description": "See <xref linkend=\"cmd-remote-option-def4-set\"/>",
+ "brief": "This command is used to create or replace DHCPv4 option definition in the configuration database.",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-option-def4-set\",
- \"service\": [ \"dhcp4\" ],
\"arguments\": {
- \"option-defs\": [ {
- <option definition specification>
- } ],
+ \"option-defs\": [
+ {
+ <option definition specification>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "The provided list must contain exactly one option definition specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The provided list must contain exactly one option definition specification.",
+ "resp-comment": "The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects."
"brief": "This command is used to delete a DHCPv4 global option from the configuration database.",
- "description": "See <xref linkend=\"cmd-remote-option4-global-del\"/>",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-option4-global-del\",
\"arguments\": {
- \"options\": [ {
- \"code\": <option code>
- \"space\": <option space>
- } ],
+ \"options\": [
+ {
+ \"code\": <option code>
+ \"space\": <option space>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "This command includes a list with exactly one option specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains \"type\": \"mysql\".",
- "resp-syntax": "
+ "cmd-comment": "This command includes a list with exactly one option specification comprising an option name and code.",
- "brief": "This command is used to fetch all DHCPv4 global options for the server from the specified database.",
- "description": "See <xref linkend=\"cmd-remote-option4-global-get-all\"/>",
+ "brief": "This command is used to fetch all DHCPv4 global options for the server from the configuration database.",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
- \"command\": \"remote-option4-global-get-all\"
+ \"command\": \"remote-option4-global-get-all\",
\"arguments\": {
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command takes no arguments besides the optional <command>remote</command> map.",
"resp-comment": "The returned response contains a list of maps. Each map contains a global option specification and the metadata including database specific information associated with the returned object."
- "cmd-comment": "The option is identified by the pair of option code/space values. The <command>remote</command> map contains specification of the backend from which the option should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The option is identified by the pair of option code/space values.",
"resp-syntax": "{
\"result\": 0,
- \"text\": \"DHCPv4 option <option code> in <option space> found.\",
- "brief": "This command is used to create or update DHCPv4 global option for the server in the specified database.",
- "description": "See <xref linkend=\"cmd-remote-option4-global-set\"/>",
+ "brief": "This command is used to create or replace a DHCPv4 global option in the configuration database.",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-option4-global-set\",
- \"service\": [ \"dhcp4\" ],
\"arguments\": {
- \"options\": [ {
- <global option specification>
- } ],
+ \"options\": [
+ {
+ <global option specification>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "The provided list must cotain exactly one option specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The provided list must cotain exactly one option specification.",
- "brief": "a sentence or two explaining what this command does",
- "description": "See <xref linkend=\"cmd-\"/>",
- "support": [ "undocumented" ],
- "avail": "0.0.0",
- "hook": "undocumented",
- "cmd-syntax": "Syntax of the command",
- "cmd-comment": "Possibly some extra comments after the syntax.",
- "resp-syntax": "Syntax of the response",
- "resp-comment": "Optional extra comments after the resposne syntax."
+ "brief": "This command is used to fetch all DHCPv6 global options for the server from the configuration database.",
+ "support": [ "kea-dhcp6" ],
+ "avail": "1.6.0",
+ "hook": "cb_cmds",
+ "cmd-syntax": "{
+ \"command\": \"remote-option6-global-get-all\",
+ \"arguments\": {
+ \"remote\": {
+ <specification of the database to connect to>
+ }
+ }
+}",
+ "cmd-comment": "This command takes no arguments besides the optional <command>remote</command> map.",
+ "resp-syntax": "{
+ \"result\": 0,
+ \"text\": \"2 DHCPv6 option(s) found.\",
+ \"arguments\": {
+ \"options\": [
+ {
+ <first option specification>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ }
+ },
+ {
+ <second option specification>,
+ \"metadata\": {
+ \"server-tag\": <server tag>
+ }
+ }
+ ],
+ \"count\": 2
+ }
+}",
+ "resp-comment": "The returned response contains a list of maps. Each map contains a global option specification and the metadata including database specific information associated with the returned object."
"brief": "This command is used to delete an IPv4 subnet by ID from the configuration database.",
- "description": "See <xref linkend=\"cmd-remote-subnet4-del-by-id\"/>",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-subnet4-del-by-id\",
- \"service\": [ \"dhcp4\" ],
\"arguments\": {
- \"subnets\": [ {
- \"id\": <subnet identifier>
- } ],
+ \"subnets\": [
+ {
+ \"id\": <subnet identifier>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "This command includes a list with exactly one id of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one id of the subnet to be deleted.",
"brief": "This command is used to delete an IPv4 subnet by prefix from the configuration database.",
- "description": "See <xref linkend=\"cmd-remote-subnet4-del-by-id\"/>",
"support": [ "kea-dhcp4" ],
"avail": "1.6.0",
"hook": "cb_cmds",
"cmd-syntax": "{
\"command\": \"remote-subnet4-del-by-prefix\",
- \"service\": [ \"dhcp4\" ],
\"arguments\": {
- \"subnets\": [ {
- \"subnet\": <subnet prefix>
- } ],
+ \"subnets\": [
+ {
+ \"subnet\": <subnet prefix>
+ }
+ ],
\"remote\": {
<specification of the database to connect to>
}
}
}",
- "cmd-comment": "This command includes a list with exactly one prefix of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one prefix of the subnet to be deleted.",
- "cmd-comment": "This command includes a list with exactly one id of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one id of the subnet to be returned.",
- "resp-comment": "The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
+ "resp-comment": "If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
- "cmd-comment": "This command includes a list with exactly one prefix of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes a list with exactly one prefix of the subnet to be returned.",
- "resp-comment": "The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
+ "resp-comment": "If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
- "cmd-comment": "The <command>remote</command> map contains specification of the backend from which the subnets should be fetched. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "This command includes no arguments besides the optional <command>remote</command> map.",
- "cmd-comment": "The provided list must contain exactly one subnet specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains \"type\": \"mysql\".",
+ "cmd-comment": "The provided list must contain exactly one subnet specification. The <command>shared-network-name</command> parameter is required for these commands. It associates the subnet with the shared network by its name. If the subnet must not belong to any shared network (global subnet), the <command>null</command> value must be specified for the shared network name.",
+ "resp-comment": "If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
+ "resp-comment": "If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object."
+ "resp-comment": "The returned response contains a list of maps. Each map contains a subnet identifier, prefix and shared network name to which the subnet belongs. If the subnet does not belong to a shared netork the name is null. The metadata includes database specific information associated with the subnets. The returned list does not contain full subnet definitions. Use <command>remote-subnet6-get</command> to fetch the full information about the selected subnets."
+ "cmd-comment": "The provided list must contain exactly one subnet specification. The <command>shared-network-name</command> parameter is required for these commands. It associates the subnet with the shared network by its name. If the subnet must not belong to any shared network (global subnet), the <command>null</command> value must be specified for the shared network name.",
-<para xml:id="ref-remote-global-parameter4-del"><command>remote-global-parameter4-del</command> - This command is used to delete a global DHCPv4 parameter from a configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.</para>
+<para xml:id="ref-remote-global-parameter4-del"><command>remote-global-parameter4-del</command> - This command is used to delete a global DHCPv4 parameter from the configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.</para>
@@ -2601,12+2599,12 @@ Result is an integer representation of the status. Currently supported statuses
}
}
}</screen>
-This command includes a list with exactly one name of the parameter to be deleted. The <command>remote</command> map contains specification of the backend from which the global parameter should be deleted. Typically it contains "type": "mysql".</para>
+This command carries the list including exactly one name of the parameter to be deleted.</para>
<para>Response syntax:
<screen>{
"result": 0,
- "text": "DHCPv4 global parameter successfully deleted.",
+ "text": "DHCPv4 global parameter(s) deleted.",
"arguments": {
"count": 1
}
@@ -2643,10+2641,8 @@ Result is an integer representation of the status. Currently supported statuses
<specification of the database to connect to>
}
}
-}
-
-</screen>
-The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+}</screen>
+This command carries a list including exactly one name of the parameter to be fetched.</para>
<para>Response syntax:
<screen>{
@@ -2687,7+2683,7 @@ The returned response contains a map with a global parameter name/value pair. Th
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+This command contains no arguments besides the optional <command>remote</command>.</para>
<para>Response syntax:
<screen>{
@@ -2719,7+2715,7 @@ The returned response contains a list of maps. Each map contains a global parame
-<para xml:id="ref-remote-global-parameter4-set"><command>remote-global-parameter4-set</command> - This command is used to create or update one more global parameters for a server.</para>
+<para xml:id="ref-remote-global-parameter4-set"><command>remote-global-parameter4-set</command> - This command is used to create or update one more global parameters in the configuration database.</para>
@@ -2740,7+2736,7 @@ The returned response contains a list of maps. Each map contains a global parame
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend where global parameter should be set. Typically it contains "type": "mysql".</para>
+This command carries multiple global parameters with their values. Care should be taken when specifying more than one parameter because in some cases only a subset of the parameters may be successfully stored in the database and other parameters may fail to be stored. In such cases the <command>remote-global-parameter4-get-all</command> may be useful to verify the contents of the database after the update.</para>
<para>Response syntax:
<screen>{
@@ -2762,21+2758,41 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-global-parameter6-del"><command>remote-global-parameter6-del</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-global-parameter6-del"><command>remote-global-parameter6-del</command> - This command is used to delete a global DHCPv6 parameter from the configuration database. The server will use the value specified in the configuration file or a default value (if the parameter is not specified in the configuration file) after deleting the parameter from the database.</para>
-<para xml:id="ref-remote-global-parameter6-get"><command>remote-global-parameter6-get</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-global-parameter6-get"><command>remote-global-parameter6-get</command> - This command is used to fetch selected global parameter for the server from the specified database.</para>
+The returned response contains a map with a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is included and it provides database specific information associated with the returned object.</para>
</section>
<!-- end of remote-global-parameter6-get -->
@@ -2806,21+2842,48 @@ Optional extra comments after the resposne syntax.</para>
<!-- start of remote-global-parameter6-get-all -->
-<para xml:id="ref-remote-global-parameter6-get-all"><command>remote-global-parameter6-get-all</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-global-parameter6-get-all"><command>remote-global-parameter6-get-all</command> - This command is used to fetch all global parameters for the server from the specified database.</para>
+The returned response contains a list of maps. Each map contains a global parameter name/value pair. The value may be a JSON string, integer, real or boolean. The metadata is appended to each parameter and it provides database specific information associated with the returned objects.</para>
</section>
<!-- end of remote-global-parameter6-get-all -->
@@ -2828,21+2891,42 @@ Optional extra comments after the resposne syntax.</para>
-<para xml:id="ref-remote-global-parameter6-set"><command>remote-global-parameter6-set</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-global-parameter6-set"><command>remote-global-parameter6-set</command> - This command is used to create or update one more global DHCP parameters in the configuration database.</para>
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command carries multiple global parameters with their values. Care should be taken when specifying more than one parameter because in some cases only a subset of the parameters may be successfully stored in the database and other parameters may fail to be stored. In such cases the <command>remote-global-parameter6-get-all</command> may be useful to verify the contents of the database after the update.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "DHCPv6 global parameter(s) successfully set."
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
</section>
<!-- end of remote-global-parameter6-set -->
@@ -2862,16+2946,18 @@ Optional extra comments after the resposne syntax.</para>
<screen>{
"command": "remote-network4-del",
"arguments": {
- "shared-networks": [ {
- "name": <shared network name>
- } ],
+ "shared-networks": [
+ {
+ "name": <shared network name>
+ }
+ ],
"subnets-action": "keep" | "delete",
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not.</para>
<para>Response syntax:
<screen>{
@@ -2908,33+2994,37 @@ Result is an integer representation of the status. Currently supported statuses
<screen>{
"command": "remote-network4-get"
"arguments": {
- "shared-networks": [ {
- "name": <shared network name>
- } ],
+ "shared-networks": [
+ {
+ "name": <shared network name>
+ }
+ ],
"subnets-include": "full" | "no",
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether subnets belonging to the shared network should also be returned. The <command>remote</command> map contains specification of the backend from which the shared network should be fetched. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether the subnets belonging to the shared network should also be returned.</para>
<para>Response syntax:
<screen>{
"result": 0,
- "text": "IPv4 shared network 'floor1' found.",
+ "text": "IPv4 shared network found.",
"arguments": {
- "shared-networks": [ {
- "name": <shared network name>,
- "metadata": {
- "server-tag": <server tag>
- },
- <the rest of the shared network information, potentially including subnets>
- } ],
+ "shared-networks": [
+ {
+ "name": <shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ },
+ <the rest of the shared network information, potentially including subnets>
+ }
+ ],
"count": 1
}
}</screen>
-The metadata is included in the returned shared network definition and it provides database specific information associated with the returned object.</para>
+If the subnets are returned with the shared network they are carried in the <command>subnet4</command> list within the shared network definition. The metadata is included in the returned shared network definition and it provides the database specific information associated with the returned object.</para>
</section>
<!-- end of remote-network4-get -->
@@ -2942,7+3032,7 @@ The metadata is included in the returned shared network definition and it provid
<!-- start of remote-network4-list -->
<section xml:id="reference-remote-network4-list">
<title>remote-network4-list reference</title>
-<para xml:id="ref-remote-network4-list"><command>remote-network4-list</command> - This command is used to fetch a list of all subnets for the particular server from the specified database.</para>
+<para xml:id="ref-remote-network4-list"><command>remote-network4-list</command> - This command is used to fetch a list of all IPv4 shared networks from the configuration database.</para>
@@ -2959,7+3049,7 @@ The metadata is included in the returned shared network definition and it provid
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend from which the shared networks should be fetched. Typically it contains "type": "mysql".</para>
+This command contains no arguments besides the optional <command>remote</command>.</para>
<para>Response syntax:
<screen>{
@@ -2983,7+3073,7 @@ The <command>remote</command> map contains specification of the backend from whi
"count": 2
}
}</screen>
-The returned response contains a list of maps. Each map contains a shared network name and the metadata which provides database specific information associated with the shared networks. The returned list does not contain full definitions of the shared networks. Use <command>remote-network4-get</command> to fetch the full information about the selected shared networks.</para>
+The returned response contains the list of maps. Each map contains the shared network name and the metadata which provides database specific information associated with the shared network. The returned list does not contain full definitions of the shared networks. Use <command>remote-network4-get</command> to fetch the full information about the selected shared networks.</para>
</section>
<!-- end of remote-network4-list -->
@@ -2991,7+3081,7 @@ The returned response contains a list of maps. Each map contains a shared networ
<!-- start of remote-network4-set -->
<section xml:id="reference-remote-network4-set">
<title>remote-network4-set reference</title>
-<para xml:id="ref-remote-network4-set"><command>remote-network4-set</command> - This command is used to create or update IPv4 shared network for a server in the specified database.</para>
+<para xml:id="ref-remote-network4-set"><command>remote-network4-set</command> - This command is used to create or replace an IPv4 shared network in the configuration database.</para>
<specification of the database to connect to>
}
}
}</screen>
-The provided list must contain exactly one shared network specification. It must not contain subnets (subnet4 parameter). The subnets are added to the shared network using <command>remote-subnet4-set</command> command. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+The provided list must contain exactly one shared network specification. It must not contain subnets ("subnet4" parameter). The subnets are added to the shared network using <command>remote-subnet4-set</command> command.</para>
<para>Response syntax:
<screen>{
@@ -3033,21+3125,47 @@ Result is an integer representation of the status. Currently supported statuses
<!-- start of remote-network6-del -->
<section xml:id="reference-remote-network6-del">
<title>remote-network6-del reference</title>
-<para xml:id="ref-remote-network6-del"><command>remote-network6-del</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-network6-del"><command>remote-network6-del</command> - This command is used to delete an IPv6 shared network from the configuration database.</para>
<para>Description and examples: See <xref linkend="command-remote-network6-del"/></para>
<para>Command syntax:
- <screen>Syntax of the command</screen>
-Possibly some extra comments after the syntax.</para>
+ <screen>{
+ "command": "remote-network6-del",
+ "arguments": {
+ "shared-networks": [
+ {
+ "name": <shared network name>
+ }
+ ],
+ "subnets-action": "keep" | "delete",
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one name of the shared network to be deleted. The <command>subnets-action</command> denotes whether the subnets in this shared network should be deleted or not.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "1 IPv6 shared network(s) deleted.",
+ "arguments": {
+ "count": 1
+ }
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
</section>
<!-- end of remote-network6-del -->
@@ -3055,43+3173,98 @@ Optional extra comments after the resposne syntax.</para>
<!-- start of remote-network6-get -->
<section xml:id="reference-remote-network6-get">
<title>remote-network6-get reference</title>
-<para xml:id="ref-remote-network6-get"><command>remote-network6-get</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-network6-get"><command>remote-network6-get</command> - This command is used to fetch selected IPv6 shared network for the server from the specified database.</para>
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command includes a list with exactly one name of the shared network to be returned. The <command>subnets-include</command> optional parameter allows for specifying whether the subnets belonging to the shared network should also be returned.</para>
+
+<para>Response syntax:
+ <screen>{
+ "result": 0,
+ "text": "IPv6 shared network found.",
+ "arguments": {
+ "shared-networks": [
+ {
+ "name": <shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ },
+ <the rest of the shared network information, potentially including subnets>
+ }
+ ],
+ "count": 1
+ }
+}</screen>
+If the subnets are returned with the shared network they are carried in the <command>subnet6</command> list within the shared network definition. The metadata is included in the returned shared network definition and it provides the database specific information associated with the returned object.</para>
-<para xml:id="ref-remote-network6-list"><command>remote-network6-list</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-network6-list"><command>remote-network6-list</command> - This command is used to fetch a list of all IPv6 shared networks from the configuration database.</para>
<para>Description and examples: See <xref linkend="command-remote-network6-list"/></para>
<para>Command syntax:
- <screen>Syntax of the command</screen>
-Possibly some extra comments after the syntax.</para>
+ <screen>{
+ "command": "remote-network6-list"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command contains no arguments besides the optional <command>remote</command>.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "2 IPv6 shared network(s) found.",
+ "arguments": {
+ "shared-networks": [
+ {
+ "name": <first shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ "name": <second shared network name>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
+ }
+}</screen>
+The returned response contains the list of maps. Each map contains the shared network name and the metadata which provides database specific information associated with the shared network. The returned list does not contain full definitions of the shared networks. Use <command>remote-network6-get</command> to fetch the full information about the selected shared networks.</para>
</section>
<!-- end of remote-network6-list -->
@@ -3099,21+3272,43 @@ Optional extra comments after the resposne syntax.</para>
<!-- start of remote-network6-set -->
<section xml:id="reference-remote-network6-set">
<title>remote-network6-set reference</title>
-<para xml:id="ref-remote-network6-set"><command>remote-network6-set</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-network6-set"><command>remote-network6-set</command> - This command is used to create or replace an IPv6 shared network in the configuration database.</para>
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must contain exactly one shared network specification. It must not contain subnets ("subnet6" parameter). The subnets are added to the shared network using <command>remote-subnet6-set</command> command.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "IPv6 shared network successfully set."
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are:
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
</section>
<!-- end of remote-network6-set -->
@@ -3142,7+3337,7 @@ Optional extra comments after the resposne syntax.</para>
}
}
}</screen>
-This command includes a list with exactly one option definition specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one option definition specification comprising an option name and code.</para>
<para>Response syntax:
<screen>{
@@ -3167,7+3362,7 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-option-def4-get"><command>remote-option-def4-get</command> - This command is used to fetch DHCPv4 option definition for the server from the specified database.</para>
+<para xml:id="ref-remote-option-def4-get"><command>remote-option-def4-get</command> - This command is used to fetch a DHCPv4 option definition from the configuration database.</para>
@@ -3179,28+3374,32 @@ Result is an integer representation of the status. Currently supported statuses
<screen>{
"command": "remote-option-def4-get",
"arguments": {
- "option-defs": [ {
- "code": <option code>,
- "space": <option space>
- } ],
+ "option-defs": [
+ {
+ "code": <option code>,
+ "space": <option space>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-The desired option definition is identified by the pair of option code/space values. The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+The desired option definition is identified by the pair of the option code/space values.</para>
<para>Response syntax:
<screen>{
"result": 0,
- "text": "DHCPv4 option definition 222 in 'dhcp4' found.",
+ "text": "DHCPv4 option definition found.",
"arguments": {
- "option-defs": [ {
- <option definition>,
- "metadata": {
- "server-tag": <server tag>
+ "option-defs": [
+ {
+ <option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
}
- } ],
+ ],
"count": 1
}
}</screen>
@@ -3212,7+3411,7 @@ The metadata is included and it provides database specific information associate
-<para xml:id="ref-remote-option-def4-get-all"><command>remote-option-def4-get-all</command> - This command is used to fetch all option definitions for the server from the specified database.</para>
+<para xml:id="ref-remote-option-def4-get-all"><command>remote-option-def4-get-all</command> - This command is used to fetch all DHCPv4 option definitions from the configuration database.</para>
@@ -3229,7+3428,7 @@ The metadata is included and it provides database specific information associate
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+This command contains no arguments besides the optional <command>remote</command>.</para>
<para>Response syntax:
<screen>{
@@ -3250,7+3449,7 @@ The <command>remote</command> map contains specification of the backend from whi
}
}
],
- "count": <count of the objects returned>
+ "count": 2
}
}</screen>
The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects.</para>
@@ -3261,7+3460,7 @@ The returned response contains a list of maps. Each map contains an option defin
-<para xml:id="ref-remote-option-def4-set"><command>remote-option-def4-set</command> - This command is used to create or update DHCPv4 option definition for the server in the specified database.</para>
+<para xml:id="ref-remote-option-def4-set"><command>remote-option-def4-set</command> - This command is used to create or replace DHCPv4 option definition in the configuration database.</para>
@@ -3272,17+3471,18 @@ The returned response contains a list of maps. Each map contains an option defin
<para>Command syntax:
<screen>{
"command": "remote-option-def4-set",
- "service": [ "dhcp4" ],
"arguments": {
- "option-defs": [ {
- <option definition specification>
- } ],
+ "option-defs": [
+ {
+ <option definition specification>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-The provided list must contain exactly one option definition specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+The provided list must contain exactly one option definition specification.</para>
<para>Response syntax:
<screen>{
@@ -3304,21+3504,47 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-option-def6-del"><command>remote-option-def6-del</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option-def6-del"><command>remote-option-def6-del</command> - This command is used to delete a DHCPv6 option definition from the configuration database.</para>
-<para xml:id="ref-remote-option-def6-get"><command>remote-option-def6-get</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option-def6-get"><command>remote-option-def6-get</command> - This command is used to fetch a DHCPv6 option definition from the configuration database.</para>
-<para xml:id="ref-remote-option-def6-get-all"><command>remote-option-def6-get-all</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option-def6-get-all"><command>remote-option-def6-get-all</command> - This command is used to fetch all DHCPv6 option definitions from the configuration database.</para>
<para>Description and examples: See <xref linkend="command-remote-option-def6-get-all"/></para>
<para>Command syntax:
- <screen>Syntax of the command</screen>
-Possibly some extra comments after the syntax.</para>
+ <screen>{
+ "command": "remote-option-def6-get-all"
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command contains no arguments besides the optional <command>remote</command>.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "2 DHCPv6 option definition(s) found.",
+ "arguments": {
+ "option-defs": [
+ {
+ <first option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ <second option definition>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains an option definition specification and the metadata including database specific information associated with the returned objects.</para>
</section>
<!-- end of remote-option-def6-get-all -->
@@ -3370,21+3650,43 @@ Optional extra comments after the resposne syntax.</para>
-<para xml:id="ref-remote-option-def6-set"><command>remote-option-def6-set</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option-def6-set"><command>remote-option-def6-set</command> - This command is used to create or replace DHCPv6 option definition in the configuration database.</para>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
</section>
<!-- end of remote-option-def6-set -->
@@ -3404,24+3706,27 @@ Optional extra comments after the resposne syntax.</para>
<screen>{
"command": "remote-option4-global-del",
"arguments": {
- "options": [ {
- "code": <option code>
- "space": <option space>
- } ],
+ "options": [
+ {
+ "code": <option code>
+ "space": <option space>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-This command includes a list with exactly one option specification comprising an option name and code. The <command>remote</command> map contains specification of the backend from which the shared network should be deleted. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one option specification comprising an option name and code.</para>
<para>Response syntax:
- <screen>
+ <screen>{
"result": 0,
"text": "1 DHCPv4 option(s) deleted.",
"arguments": {
"count": 1
- }</screen>
+ }
+}</screen>
Result is an integer representation of the status. Currently supported statuses are:
<itemizedlist>
<listitem><para>0 - success</para></listitem>
@@ -3459,12+3764,12 @@ Result is an integer representation of the status. Currently supported statuses
<specification of the database to connect to>
}
}</screen>
-The option is identified by the pair of option code/space values. The <command>remote</command> map contains specification of the backend from which the option should be fetched. Typically it contains "type": "mysql".</para>
+The option is identified by the pair of option code/space values.</para>
<para>Response syntax:
<screen>{
"result": 0,
- "text": "DHCPv4 option <option code> in <option space> found.",
+ "text": "DHCPv4 option in found.",
"arguments": {
"options": [
{
@@ -3484,7+3789,7 @@ The metadata is included and it provides database specific information associate
-<para xml:id="ref-remote-option4-global-get-all"><command>remote-option4-global-get-all</command> - This command is used to fetch all DHCPv4 global options for the server from the specified database.</para>
+<para xml:id="ref-remote-option4-global-get-all"><command>remote-option4-global-get-all</command> - This command is used to fetch all DHCPv4 global options for the server from the configuration database.</para>
@@ -3494,14+3799,14 @@ The metadata is included and it provides database specific information associate
<para>Command syntax:
<screen>{
- "command": "remote-option4-global-get-all"
+ "command": "remote-option4-global-get-all",
"arguments": {
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend from which the global parameters should be fetched. Typically it contains "type": "mysql".</para>
+This command takes no arguments besides the optional <command>remote</command> map.</para>
<para>Response syntax:
<screen>{
@@ -3522,7+3827,7 @@ The <command>remote</command> map contains specification of the backend from whi
}
}
],
- "count": <count of the objects returned>
+ "count": 2
}
}</screen>
The returned response contains a list of maps. Each map contains a global option specification and the metadata including database specific information associated with the returned object.</para>
@@ -3533,7+3838,7 @@ The returned response contains a list of maps. Each map contains a global option
-<para xml:id="ref-remote-option4-global-set"><command>remote-option4-global-set</command> - This command is used to create or update DHCPv4 global option for the server in the specified database.</para>
+<para xml:id="ref-remote-option4-global-set"><command>remote-option4-global-set</command> - This command is used to create or replace a DHCPv4 global option in the configuration database.</para>
@@ -3544,17+3849,18 @@ The returned response contains a list of maps. Each map contains a global option
<para>Command syntax:
<screen>{
"command": "remote-option4-global-set",
- "service": [ "dhcp4" ],
"arguments": {
- "options": [ {
- <global option specification>
- } ],
+ "options": [
+ {
+ <global option specification>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-The provided list must cotain exactly one option specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+The provided list must cotain exactly one option specification.</para>
<para>Response syntax:
<screen>{
@@ -3576,43+3882,94 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-option6-global-del"><command>remote-option6-global-del</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option6-global-del"><command>remote-option6-global-del</command> - This command is used to delete a DHCPv6 global option from the configuration database.</para>
-<para xml:id="ref-remote-option6-global-get"><command>remote-option6-global-get</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option6-global-get"><command>remote-option6-global-get</command> - This command is used to delete a DHCPv6 global option from the configuration database.</para>
-<para xml:id="ref-remote-option6-global-get-all"><command>remote-option6-global-get-all</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option6-global-get-all"><command>remote-option6-global-get-all</command> - This command is used to fetch all DHCPv6 global options for the server from the configuration database.</para>
<para>Description and examples: See <xref linkend="command-remote-option6-global-get-all"/></para>
<para>Command syntax:
- <screen>Syntax of the command</screen>
-Possibly some extra comments after the syntax.</para>
+ <screen>{
+ "command": "remote-option6-global-get-all",
+ "arguments": {
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+This command takes no arguments besides the optional <command>remote</command> map.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "2 DHCPv6 option(s) found.",
+ "arguments": {
+ "options": [
+ {
+ <first option specification>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ },
+ {
+ <second option specification>,
+ "metadata": {
+ "server-tag": <server tag>
+ }
+ }
+ ],
+ "count": 2
+ }
+}</screen>
+The returned response contains a list of maps. Each map contains a global option specification and the metadata including database specific information associated with the returned object.</para>
</section>
<!-- end of remote-option6-global-get-all -->
@@ -3642,21+4026,43 @@ Optional extra comments after the resposne syntax.</para>
-<para xml:id="ref-remote-option6-global-set"><command>remote-option6-global-set</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-option6-global-set"><command>remote-option6-global-set</command> - This command is used to create or replace a DHCPv6 global option in the configuration database.</para>
+ <listitem><para>3 - empty (command was completed successfully, but no data was affected or returned)</para></listitem>
+</itemizedlist>
+</para>
</section>
<!-- end of remote-option6-global-set -->
@@ -3675,17+4081,18 @@ Optional extra comments after the resposne syntax.</para>
<para>Command syntax:
<screen>{
"command": "remote-subnet4-del-by-id",
- "service": [ "dhcp4" ],
"arguments": {
- "subnets": [ {
- "id": <subnet identifier>
- } ],
+ "subnets": [
+ {
+ "id": <subnet identifier>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-This command includes a list with exactly one id of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one id of the subnet to be deleted.</para>
<para>Response syntax:
<screen>{
@@ -3721,17+4128,18 @@ Result is an integer representation of the status. Currently supported statuses
<para>Command syntax:
<screen>{
"command": "remote-subnet4-del-by-prefix",
- "service": [ "dhcp4" ],
"arguments": {
- "subnets": [ {
- "subnet": <subnet prefix>
- } ],
+ "subnets": [
+ {
+ "subnet": <subnet prefix>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-This command includes a list with exactly one prefix of the subnet to be deleted. The <command>remote</command> map contains specification of the backend from which the subnet should be deleted. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one prefix of the subnet to be deleted.</para>
<para>Response syntax:
<screen>{
@@ -3756,7+4164,7 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-subnet4-get-by-id"><command>remote-subnet4-get-by-id</command> - This command is used to fetch selected IPv4 subnet by ID for the server from the specified database.</para>
+<para xml:id="ref-remote-subnet4-get-by-id"><command>remote-subnet4-get-by-id</command> - This command is used to fetch selected IPv4 subnet by ID for the server from the configuration database.</para>
@@ -3776,12+4184,12 @@ Result is an integer representation of the status. Currently supported statuses
}
}
}</screen>
-This command includes a list with exactly one id of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one id of the subnet to be returned.</para>
<para>Response syntax:
<screen>{
"result": 0,
- "text": "IPv4 subnet 123 found.",
+ "text": "IPv4 subnet found.",
"arguments": {
"subnets": [ {
"id": <subnet identifier>
@@ -3795,7+4203,7 @@ This command includes a list with exactly one id of the subnet to be returned. T
"count": 1
}
}</screen>
-The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
+If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
</section>
<!-- end of remote-subnet4-get-by-id -->
@@ -3803,7+4211,7 @@ The metadata is included in the returned subnet definition and it provides datab
-<para xml:id="ref-remote-subnet4-get-by-prefix"><command>remote-subnet4-get-by-prefix</command> - This command is used to fetch selected IPv4 subnet by prefix for the server from the specified database.</para>
+<para xml:id="ref-remote-subnet4-get-by-prefix"><command>remote-subnet4-get-by-prefix</command> - This command is used to fetch selected IPv4 subnet by prefix from the configuration database.</para>
@@ -3823,26+4231,28 @@ The metadata is included in the returned subnet definition and it provides datab
}
}
}</screen>
-This command includes a list with exactly one prefix of the subnet to be returned. The <command>remote</command> map contains specification of the backend from which the subnet should be fetched. Typically it contains "type": "mysql".</para>
+This command includes a list with exactly one prefix of the subnet to be returned.</para>
+ <the rest of the subnet specification here>
+ }
+ ],
"count": 1
}
}</screen>
-The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
+If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
</section>
<!-- end of remote-subnet4-get-by-prefix -->
@@ -3850,7+4260,7 @@ The metadata is included in the returned subnet definition and it provides datab
<!-- start of remote-subnet4-list -->
<section xml:id="reference-remote-subnet4-list">
<title>remote-subnet4-list reference</title>
-<para xml:id="ref-remote-subnet4-list"><command>remote-subnet4-list</command> - This command is used to fetch a list of all IPv4 shared networks for the particular server from the specified database.</para>
+<para xml:id="ref-remote-subnet4-list"><command>remote-subnet4-list</command> - This command is used to fetch a list of all IPv4 subnets from the configuration database.</para>
@@ -3867,7+4277,7 @@ The metadata is included in the returned subnet definition and it provides datab
}
}
}</screen>
-The <command>remote</command> map contains specification of the backend from which the subnets should be fetched. Typically it contains "type": "mysql".</para>
+This command includes no arguments besides the optional <command>remote</command> map.</para>
<para>Response syntax:
<screen>{
@@ -3903,7+4313,7 @@ The returned response contains a list of maps. Each map contains a subnet identi
<!-- start of remote-subnet4-set -->
<section xml:id="reference-remote-subnet4-set">
<title>remote-subnet4-set reference</title>
-<para xml:id="ref-remote-subnet4-set"><command>remote-subnet4-set</command> - This command is used to create or update IPv4 subnet for a server in the specified database.</para>
+<para xml:id="ref-remote-subnet4-set"><command>remote-subnet4-set</command> - This command is used to create or replace an IPv4 subnet the configuration database.</para>
+ <the rest of the subnet specification here>
+ }
+ ],
"remote": {
<specification of the database to connect to>
}
}
}</screen>
-The provided list must contain exactly one subnet specification. The <command>remote</command> map contains specification of the backend where shared network should be set. Typically it contains "type": "mysql".</para>
+The provided list must contain exactly one subnet specification. The <command>shared-network-name</command> parameter is required for these commands. It associates the subnet with the shared network by its name. If the subnet must not belong to any shared network (global subnet), the <command>null</command> value must be specified for the shared network name.</para>
<para>Response syntax:
<screen>{
@@ -3948,21+4360,46 @@ Result is an integer representation of the status. Currently supported statuses
-<para xml:id="ref-remote-subnet6-del-by-id"><command>remote-subnet6-del-by-id</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-del-by-id"><command>remote-subnet6-del-by-id</command> - This command is used to delete an IPv6 subnet by ID from the configuration database.</para>
-<para xml:id="ref-remote-subnet6-del-by-prefix"><command>remote-subnet6-del-by-prefix</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-del-by-prefix"><command>remote-subnet6-del-by-prefix</command> - This command is used to delete an IPv6 subnet by prefix from the configuration database.</para>
-<para xml:id="ref-remote-subnet6-get-by-id"><command>remote-subnet6-get-by-id</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-get-by-id"><command>remote-subnet6-get-by-id</command> - This command is used to fetch selected IPv6 subnet by ID for the server from the configuration database.</para>
+ <the rest of the subnet specification here>
+ }
+ ],
+ "count": 1
+ }
+}</screen>
+If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
</section>
<!-- end of remote-subnet6-get-by-id -->
@@ -4014,21+4505,48 @@ Optional extra comments after the resposne syntax.</para>
-<para xml:id="ref-remote-subnet6-get-by-prefix"><command>remote-subnet6-get-by-prefix</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-get-by-prefix"><command>remote-subnet6-get-by-prefix</command> - This command is used to fetch selected IPv6 subnet by prefix from the configuration database.</para>
+ <the rest of the subnet specification here>
+ } ],
+ "count": 1
+ }
+}</screen>
+If the shared network name is null, it means that the returned subnet does not belong to any shared network (global subnet). The metadata is included in the returned subnet definition and it provides database specific information associated with the returned object.</para>
</section>
<!-- end of remote-subnet6-get-by-prefix -->
@@ -4036,21+4554,52 @@ Optional extra comments after the resposne syntax.</para>
<!-- start of remote-subnet6-list -->
<section xml:id="reference-remote-subnet6-list">
<title>remote-subnet6-list reference</title>
-<para xml:id="ref-remote-subnet6-list"><command>remote-subnet6-list</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-list"><command>remote-subnet6-list</command> - This command is used to fetch a list of all IPv6 subnets from the configuration database.</para>
+The returned response contains a list of maps. Each map contains a subnet identifier, prefix and shared network name to which the subnet belongs. If the subnet does not belong to a shared netork the name is null. The metadata includes database specific information associated with the subnets. The returned list does not contain full subnet definitions. Use <command>remote-subnet6-get</command> to fetch the full information about the selected subnets.</para>
</section>
<!-- end of remote-subnet6-list -->
@@ -4058,21+4607,46 @@ Optional extra comments after the resposne syntax.</para>
<!-- start of remote-subnet6-set -->
<section xml:id="reference-remote-subnet6-set">
<title>remote-subnet6-set reference</title>
-<para xml:id="ref-remote-subnet6-set"><command>remote-subnet6-set</command> - a sentence or two explaining what this command does</para>
+<para xml:id="ref-remote-subnet6-set"><command>remote-subnet6-set</command> - This command is used to create or replace an IPv4 subnet the configuration database.</para>
+ <the rest of the subnet specification here>
+ }
+ ],
+ "remote": {
+ <specification of the database to connect to>
+ }
+ }
+}</screen>
+The provided list must contain exactly one subnet specification. The <command>shared-network-name</command> parameter is required for these commands. It associates the subnet with the shared network by its name. If the subnet must not belong to any shared network (global subnet), the <command>null</command> value must be specified for the shared network name.</para>
<para>Response syntax:
- <screen>Syntax of the response</screen>
-Optional extra comments after the resposne syntax.</para>
+ <screen>{
+ "result": 0,
+ "text": "IPv6 subnet successfully set.",
+}</screen>
+Result is an integer representation of the status. Currently supported statuses are: