"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 during processing, inserting it into the database, etc., the result is set to 1. For each lease which was not deleted because the server did not find it in the database, the result of 3 is returned."
],
"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>",
- " }",
- " ],",
- " \"failed-leases\": [",
- " {",
- " \"ip-address\": \"2001:db8:cafe::\",",
- " \"type\": \"IA_PD\",",
- " \"result\": <control result>,",
- " \"error-message\": <error message>",
- " }",
- " ]",
- " }",
+ "{",
+ " \"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>",
+ " }",
+ " ],",
+ " \"failed-leases\": [",
+ " {",
+ " \"ip-address\": \"2001:db8:cafe::\",",
+ " \"type\": \"IA_PD\",",
+ " \"result\": <control result>,",
+ " \"error-message\": <error message>",
+ " }",
+ " ]",
" }",
"}"
],
" \"name\": <shared network name>",
" }",
" ],",
- " \"subnets-action\": '<'keep' | 'delete'>',",
+ " \"subnets-action\": <'keep' | 'delete'>,",
" \"remote\": {",
" <specification of the database to connect to>",
" }",
" \"name\": <shared network name>",
" }",
" ],",
- " \"subnets-include\": \"full\" | \"no\",",
+ " \"subnets-include\": <'full' | 'no'>,",
" \"remote\": {",
" <specification of the database to connect to>",
" }",
" \"name\": <shared network name>",
" }",
" ],",
- " \"subnets-action\": \"keep\" | \"delete\",",
+ " \"subnets-action\": <'keep' | 'delete'>,",
" \"remote\": {",
" <specification of the database to connect to>",
" }",
" \"name\": <shared network name>",
" }",
" ],",
- " \"subnets-include\": \"full\" | \"no\",",
+ " \"subnets-include\": <'full' | 'no'>,",
" \"remote\": {",
" <specification of the database to connect to>",
" }",
" \"arguments\": {",
" \"option-defs\": [ {",
" \"code\": <option code>,",
- " \"space\": <option space",
+ " \"space\": <option space>",
" } ],",
" \"remote\": {",
" <specification of the database to connect to>",
" \"arguments\": {",
" \"option-defs\": [ {",
" \"code\": <option code>,",
- " \"space\": <option space",
+ " \"space\": <option space>",
" } ],",
" \"remote\": {",
" <specification of the database to connect to>",
" \"options\": [",
" {",
" \"code\": <option code>,",
- " \"space\": <option space>,",
+ " \"space\": <option space>",
" }",
" ],",
" \"remote\": {",
" <specification of the database to connect to>",
" },",
" \"server-tags\": [ <single server tag as string> ]",
+ " }",
"}"
],
"hook": "cb_cmds",
" \"options\": [",
" {",
" \"code\": <option code>,",
- " \"space\": <option space>,",
+ " \"space\": <option space>",
" }",
" ],",
" \"remote\": {",
" <specification of the database to connect to>",
" },",
" \"server-tags\": [ <single server tag as string> ]",
+ " }"
"}"
],
"hook": "cb_cmds",
"resp-syntax": [
"{",
" \"result\": 0,",
- " \"text\": \"DHCP server <server tag> found.\",",
+ " \"text\": \"DHCP server 'server tag' found.\",",
" \"arguments\": {",
" \"servers\": [",
" {",
"support": [
"kea-dhcp4"
]
-}
\ No newline at end of file
+}
"resp-syntax": [
"{",
" \"result\": 0,",
- " \"text\": \"DHCP server <server tag> found.\",",
+ " \"text\": \"DHCP server 'server tag' found.\",",
" \"arguments\": {",
" \"servers\": [",
" {",
"support": [
"kea-dhcp6"
]
-}
\ No newline at end of file
+}
" \"arguments\": {",
" \"reservation\": {",
" \"boot-file-name\": <string>,",
- " \"comment\": <string>",
+ " \"comment\": <string>,",
" \"client-id\": <string>,",
" \"circuit-id\": <string>,",
" \"duid\": <string>,",
" \"reservation-client-classes\": [ <comma separated strings> ],",
" \"server-hostname\": <string>,",
" \"subnet-id\": <integer>,",
- " \"user-context\": <any valid JSON>,",
+ " \"user-context\": <any valid JSON>",
" }",
" }",
"}"
" \"arguments\": {",
" \"subnet-id\": <integer>,",
" \"ip-address\": <string>,",
- " \"identifier-type\": <one of \"hw-address\", \"duid\", \"circuit-id\", \"client-id\" and \"flex-id\">,",
+ " \"identifier-type\": <one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>,",
" \"identifier\": <string>",
" }",
"}"
"kea-dhcp4",
"kea-dhcp6"
]
-}
\ No newline at end of file
+}
" \"command\": \"reservation-get-all\",",
" \"arguments\": {",
" \"subnet-id\": <integer>",
+ " }"
"}"
],
"hook": "host_cmds",
"kea-dhcp4",
"kea-dhcp6"
]
-}
\ No newline at end of file
+}
" \"command\": \"reservation-get\",",
" \"arguments\": {",
" \"subnet-id\": <integer>,",
- " \"identifier-type\": <one of \"hw-address\", \"duid\", \"circuit-id\", \"client-id\" and \"flex-id\">,",
- " \"identifier\": <string>;",
+ " \"identifier-type\": <one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>,",
+ " \"identifier\": <string>",
" }",
"}"
],
" \"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 ]",
+ " [ 20, 0, 0, 0, 1048, 233 ],",
" [ 30, 256, 60, 0, 1048, 15 ]",
" ],",
" \"timestamp\": \"2018-05-04 15:03:37.000000\"",
" \"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\"",
- " }",
- " ]",
+ " \"subnets\": [",
+ " {",
+ " \"id\": 10,",
+ " \"subnet\": \"10.0.0.0/8\"",
+ " },",
+ " {",
+ " \"id\": 100,",
+ " \"subnet\": \"192.0.2.0/24\"",
+ " }",
+ " ]",
+ " }",
"}"
],
"support": [
"kea-dhcp4"
]
-}
\ No newline at end of file
+}
" \"result\": 0,",
" \"text\": \"2 IPv6 subnets found\",",
" \"arguments\": {",
- " \"subnets\": [",
- " {",
- " \"id\": 11,",
- " \"subnet\": \"2001:db8:1::/64\"",
- " },",
- " {",
- " \"id\": 233,",
- " \"subnet\": \"3000::/16\"",
- " }",
- " ]",
+ " \"subnets\": [",
+ " {",
+ " \"id\": 11,",
+ " \"subnet\": \"2001:db8:1::/64\"",
+ " },",
+ " {",
+ " \"id\": 233,",
+ " \"subnet\": \"3000::/16\"",
+ " }",
+ " ]",
+ " }",
"}"
],
"support": [
"kea-dhcp6"
]
-}
\ No newline at end of file
+}