\"arguments\": {
\"deleted-leases\": [
{
- \"subnet-id\": 66,
\"ip-address\": \"2001:db8:abcd::\",
\"type\": \"IA_PD\",
...
},
{
- \"subnet-id\": 66,
\"ip-address\": \"2001:db8:abcd::234\",
\"type\": \"IA_NA\",
...
\"arguments\": {
\"failed-deleted-leases\": [
{
- \"subnet-id\": 66,
\"ip-address\": \"2001:db8:abcd::\",
- \"type\": \"IA_PD\"
+ \"type\": \"IA_PD\",
+ \"result\": <control result>,
+ \"error-message\": <error message>
}
],
\"failed-leases\": [
{
- \"subnet-id\": 66,
\"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."
+ "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."
}
"arguments": {
"deleted-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::",
"type": "IA_PD",
...
},
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::234",
"type": "IA_NA",
...
"arguments": {
"failed-deleted-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::",
- "type": "IA_PD"
+ "type": "IA_PD",
+ "result": <control result>,
+ "error-message": <error message>
}
],
"failed-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:cafe::",
"type": "IA_PD",
- ...
+ "result" <control result>,
+ "error-message": <error message>
}
]
}
}
}</screen>
-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.</para>
+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.</para>
</section>
<!-- end of lease6-bulk-apply -->
"arguments": {
"deleted-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::",
"type": "IA_PD",
- ...
},
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::234",
"type": "IA_NA",
- ...
}
],
"leases": [
"arguments": {
"failed-deleted-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:abcd::",
- "type": "IA_PD"
+ "type": "IA_PD",
+ "result": 3,
+ "error-message": "no lease found"
}
],
"failed-leases": [
{
- "subnet-id": 66,
"ip-address": "2001:db8:cafe::",
"type": "IA_PD",
- ...
+ "result": 1,
+ "error-message": "unable to communicate with the lease database"
}
]
}
<para>The response above indicates that the hooks library was unable to
delete the lease for prefix "2001:db8:abcd::" and add or update the lease
for prefix "2001:db8:cafe::". However, there are two other lease changes
- which have been applied as indicated by the text message.
+ which have been applied as indicated by the text message. The
+ <command>result</command> is the status constant that indicates the type
+ of the error experienced for the particular lease. The meaning of the
+ returned codes are the same as the results returned for the commands.
+ In particular, the result of 1 indicates an error while processing the
+ lease, e.g. a communication error with the database. The result of 3
+ indicates that an attempt to delete the lease was unsuccessful because
+ such lease doesn't exist (empty result).
</para>
</section>