]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3144] updated doc
authorRazvan Becheriu <razvan@isc.org>
Tue, 31 Mar 2026 17:47:06 +0000 (20:47 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 18 May 2026 11:22:02 +0000 (14:22 +0300)
doc/sphinx/api-files.txt
doc/sphinx/arm/ctrl-channel.rst
src/share/api/interface-list.json [new file with mode: 0644]
src/share/api/interface-redetect.json [new file with mode: 0644]
src/share/api/interface-use.json [new file with mode: 0644]
src/share/api/remote-option-def4-del.json
src/share/api/remote-option-def6-del.json

index 1a55ac40026ffb5a3af06952b6f2028a6fae9d2c..50d0ff2fef7e98af11537e32208a47017c166eb7 100644 (file)
@@ -43,6 +43,9 @@ src/share/api/ha-reset.json
 src/share/api/ha-scopes.json
 src/share/api/ha-sync.json
 src/share/api/ha-sync-complete-notify.json
+src/share/api/interface-list.json
+src/share/api/interface-redetect.json
+src/share/api/interface-use.json
 src/share/api/kea-lfc-start.json
 src/share/api/lease4-add.json
 src/share/api/lease4-del.json
index 740554b1a62e33600fff1ec39a4b6faa73ae5b16..a5c3eb80fb4c333af375568408cac737c07e70ef 100644 (file)
@@ -484,6 +484,30 @@ returning client that previously used that lease. See :ref:`lease-affinity`
 for details. Also, see :ref:`lease-reclamation` for general
 information about the processing of expired leases (lease reclamation).
 
+.. isccmd:: interface-list
+.. _command-interface-list:
+
+The ``interface-list`` Command
+------------------------------
+
+The :isccmd:`interface-list` command retrieves.
+
+.. isccmd:: interface-redetect
+.. _command-interface-redetect:
+
+The ``interface-redetect`` Command
+----------------------------------
+
+The :isccmd:`interface-redetect` command retrieves.
+
+.. isccmd:: interface-use
+.. _command-interface-use:
+
+The ``interface-use`` Command
+-----------------------------
+
+The :isccmd:`interface-use` command updates.
+
 .. isccmd:: list-commands
 .. _command-list-commands:
 
diff --git a/src/share/api/interface-list.json b/src/share/api/interface-list.json
new file mode 100644 (file)
index 0000000..b7d4927
--- /dev/null
@@ -0,0 +1,56 @@
+{
+    "access": "read",
+    "avail": "3.1.8",
+    "brief": [
+        "This command returns the list of detected interfaces.",
+        "This command does not take any parameters."
+    ],
+    "cmd-syntax": [
+        "{",
+        "    \"command\": \"interface-list\"",
+        "}"
+    ],
+    "description": "See <xref linkend=\"command-interface-list\"/>",
+    "name": "interface-list",
+    "resp-syntax": [
+        "{",
+        "    \"result\": 0,",
+        "    \"text\": \"2 interfaces detected.\",",
+        "    \"arguments\": {",
+        "        \"interfaces\": [ {",
+        "            \"name\": \"eth0\",",
+        "            \"index\": 4,",
+        "            \"mac\": \"00:11:22:33:44:55\",",
+        "            \"type\": 6,",
+        "            \"addresses\" [ \"192.168.1.1\", \"10.10.1.1\",", 
+        "                            \"2003:db8:1::1\", \"3001:db8:1::1\",",
+        "                            \"fe80::3a60:77ff:fed5:abcd\" ],",
+        "            \"flag-loopback\": false,",
+        "            \"flag-up\": true,",
+        "            \"flag-running\": true,",
+        "            \"flag-multicast\": false,",
+        "            \"flag-broadcast\": false,",
+        "            \"in-use\": true",
+        "        }, {",
+        "            \"name\": \"eth1\",",
+        "            \"index\": 7,",
+        "            \"mac\": \"11:22:33:44:55:66\",",
+        "            \"type\": 6,",
+        "            \"addresses\" [ \"10.10.1.2\",", 
+        "                            \"2003:db8:1::2\",",
+        "                            \"fe80::3a60:77ff:fed5:1234\" ],",
+        "            \"flag-loopback\": false,",
+        "            \"flag-up\": true,",
+        "            \"flag-running\": true,",
+        "            \"flag-multicast\": false,",
+        "            \"flag-broadcast\": false,",
+        "            \"in-use\": false",
+        "        }]",
+        "    }",
+        "}"
+    ],
+    "support": [
+        "kea-dhcp4",
+        "kea-dhcp6"
+    ]
+}
diff --git a/src/share/api/interface-redetect.json b/src/share/api/interface-redetect.json
new file mode 100644 (file)
index 0000000..38b68b9
--- /dev/null
@@ -0,0 +1,71 @@
+{
+    "access": "write",
+    "avail": "3.1.8",
+    "brief": [
+        "This command returns the list of detected interfaces after performing",
+        "a re-detect procedure.",
+        "This command does not take any parameters."
+    ],
+    "cmd-syntax": [
+        "{",
+        "    \"command\": \"interface-redetect\"",
+        "}"
+    ],
+    "description": "See <xref linkend=\"command-interface-redetect\"/>",
+    "name": "interface-redetect",
+    "resp-syntax": [
+        "{",
+        "    \"result\": 0,",
+        "    \"text\": \"3 interfaces detected.\",",
+        "    \"arguments\": {",
+        "        \"interfaces\": [ {",
+        "            \"name\": \"eth0\",",
+        "            \"index\": 4,",
+        "            \"mac\": \"00:11:22:33:44:55\",",
+        "            \"type\": 6,",
+        "            \"addresses\" [ \"192.168.1.1\", \"10.10.1.1\", \"130.50.1.1\",", 
+        "                            \"2003:db8:1::1\", \"3001:db8:1::1\",",
+        "                            \"fe80::3a60:77ff:fed5:abcd\" ],",
+        "            \"flag-loopback\": false,",
+        "            \"flag-up\": true,",
+        "            \"flag-running\": true,",
+        "            \"flag-multicast\": false,",
+        "            \"flag-broadcast\": false,",
+        "            \"in-use\": true",
+        "        }, {",
+        "            \"name\": \"eth1\",",
+        "            \"index\": 7,",
+        "            \"mac\": \"11:22:33:44:55:66\",",
+        "            \"type\": 6,",
+        "            \"addresses\" [ \"10.10.1.2\",", 
+        "                            \"2003:db8:1::2\",",
+        "                            \"fe80::3a60:77ff:fed5:1234\" ],",
+        "            \"flag-loopback\": false,",
+        "            \"flag-up\": true,",
+        "            \"flag-running\": true,",
+        "            \"flag-multicast\": false,",
+        "            \"flag-broadcast\": false,",
+        "            \"in-use\": false",
+        "        }, {",
+        "            \"name\": \"eth2\",",
+        "            \"index\": 8,",
+        "            \"mac\": \"22:33:44:55:66:77\",",
+        "            \"type\": 6,",
+        "            \"addresses\" [ \"192.168.1.2\",", 
+        "                            \"3001:db8:1::2\",",
+        "                            \"fe80::3a60:77ff:fed5:5678\" ],",
+        "            \"flag-loopback\": false,",
+        "            \"flag-up\": true,",
+        "            \"flag-running\": false,",
+        "            \"flag-multicast\": false,",
+        "            \"flag-broadcast\": false,",
+        "            \"in-use\": false",
+        "        }]",
+        "    }",
+        "}"
+    ],
+    "support": [
+        "kea-dhcp4",
+        "kea-dhcp6"
+    ]
+}
diff --git a/src/share/api/interface-use.json b/src/share/api/interface-use.json
new file mode 100644 (file)
index 0000000..0630c34
--- /dev/null
@@ -0,0 +1,32 @@
+{
+    "access": "write",
+    "avail": "3.1.8",
+    "brief": [
+        "This command returns the list of detected interfaces after performing",
+        "a re-detect procedure.",
+        "This command take as parameters the list of interfaces with respective",
+        "addresses (if specified) on which the server should start listening for",
+        "DHCP traffic."
+    ],
+    "cmd-syntax": [
+        "{",
+        "    \"command\": \"interface-use\",",
+        "    \"arguments\": {",
+        "        \"interfaces\": [ \"eth0/10.10.1.1\", \"eth0/192.168.1.1\", \"eth1\"]",
+        "    }",
+        "}"
+    ],
+    "description": "See <xref linkend=\"command-interface-use\"/>",
+    "name": "interface-use",
+    "resp-syntax": [
+        "{",
+        "    \"result\": 0,",
+        "    \"text\": \"Operation succeeded.\"",
+        "    }",
+        "}"
+    ],
+    "support": [
+        "kea-dhcp4",
+        "kea-dhcp6"
+    ]
+}
index 128558b31fefd020795d6b4828c814e18e5d6f88..ed05bc13a2619dd4d615ecf900b9a9c9b511bbc3 100644 (file)
@@ -13,7 +13,7 @@
         "    \"arguments\": {",
         "        \"option-defs\": [ {",
         "            \"code\": <option code>,",
-        "            \"space\": <option space>",
+        "            \"space\": <option space>,",
         "            \"force\": false",
         "        } ],",
         "        \"remote\": {",
index 4e2840c172d99a9be3dab9908f4ff254248a0899..effb54c4e9c3ede27ff33c3e6052b3f566a377cc 100644 (file)
@@ -13,7 +13,7 @@
         "    \"arguments\": {",
         "        \"option-defs\": [ {",
         "            \"code\": <option code>,",
-        "            \"space\": <option space>",
+        "            \"space\": <option space>,",
         "            \"force\": false",
         "        } ],",
         "        \"remote\": {",