]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fixes after rebase
authorMichal Nowikowski <godfryd@isc.org>
Fri, 19 Jul 2019 08:17:31 +0000 (10:17 +0200)
committerMichal Nowikowski <godfryd@isc.org>
Tue, 30 Jul 2019 08:45:13 +0000 (10:45 +0200)
doc/api/lease6-bulk-apply.json [deleted file]
doc/guide/kea-docbook.xsl [deleted file]
doc/sphinx/Makefile.am
doc/sphinx/api/lease6-bulk-apply.json [new file with mode: 0644]

diff --git a/doc/api/lease6-bulk-apply.json b/doc/api/lease6-bulk-apply.json
deleted file mode 100644 (file)
index d132b97..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-{
-    "name": "lease6-bulk-apply",
-    "brief": "The lease6-bulk-apply command can be used to create, update and delete multiple IPv6 leases in a single transaction. This is used to communicate lease changes between the HA peers but may be used in all cases when it is desired to apply multiple lease updates in a single transaction.",
-    "support": [ "kea-dhcp6" ],
-    "avail": "1.6.0",
-    "hook": "lease_cmds",
-    "cmd-syntax": "{
-        \"command\": \"lease6-bulk-apply\",
-        \"arguments\": {
-            \"deleted-leases\": [
-                {
-                    \"ip-address\": \"2001:db8:abcd::\",
-                    \"type\": \"IA_PD\",
-                    ...
-                },
-                {
-                    \"ip-address\": \"2001:db8:abcd::234\",
-                    \"type\": \"IA_NA\",
-                    ...
-                }
-            ],
-            \"leases\": [
-                {
-                    \"subnet-id\": 66,
-                    \"ip-address\": \"2001:db8:cafe::\",
-                    \"type\": \"IA_PD\",
-                    ...
-                },
-                {
-                    \"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\": [
-                {
-                    \"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>
-                }
-            ]
-        }
-    }
-}",
-    "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."
-}
diff --git a/doc/guide/kea-docbook.xsl b/doc/guide/kea-docbook.xsl
deleted file mode 100644 (file)
index af61b7e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                 version="1.0">
-
-  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
-
-  <!-- override encoding from ISO-8859-1 to UTF-8 -->
-  <xsl:output method="html"
-              encoding="UTF-8"
-              indent="no"/>
-
-</xsl:stylesheet>
index 113b52abba9f9527da95f028fbd0b3cd8217ff5d..4c1c0b86c122e49a20c7362f7e1714592badbc77 100644 (file)
@@ -139,6 +139,7 @@ api_files+=api/lease4-get.json
 api_files+=api/lease4-update.json
 api_files+=api/lease4-wipe.json
 api_files+=api/lease6-add.json
+api_files+=api/lease6-bulk-apply.json
 api_files+=api/lease6-del.json
 api_files+=api/lease6-get-all.json
 api_files+=api/lease6-get.json
diff --git a/doc/sphinx/api/lease6-bulk-apply.json b/doc/sphinx/api/lease6-bulk-apply.json
new file mode 100644 (file)
index 0000000..05cf30a
--- /dev/null
@@ -0,0 +1,58 @@
+{
+    "name": "lease6-bulk-apply",
+    "brief": "The lease6-bulk-apply command can be used to create, update and delete multiple IPv6 leases in a single transaction. This is used to communicate lease changes between the HA peers but may be used in all cases when it is desired to apply multiple lease updates in a single transaction.",
+    "support": [ "kea-dhcp6" ],
+    "avail": "1.6.0",
+    "hook": "lease_cmds",
+    "cmd-syntax": {
+        "command": "lease6-bulk-apply",
+        "arguments": {
+            "deleted-leases": [
+                {
+                    "ip-address": "2001:db8:abcd::",
+                    "type": "IA_PD"
+                },
+                {
+                    "ip-address": "2001:db8:abcd::234",
+                    "type": "IA_NA"
+                }
+            ],
+            "leases": [
+                {
+                    "subnet-id": 66,
+                    "ip-address": "2001:db8:cafe::",
+                    "type": "IA_PD"
+                },
+                {
+                    "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": [
+                {
+                    "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>"
+                }
+            ]
+        }
+    },
+    "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."
+}