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
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:
--- /dev/null
+{
+ "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"
+ ]
+}
--- /dev/null
+{
+ "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"
+ ]
+}
--- /dev/null
+{
+ "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"
+ ]
+}
" \"arguments\": {",
" \"option-defs\": [ {",
" \"code\": <option code>,",
- " \"space\": <option space>",
+ " \"space\": <option space>,",
" \"force\": false",
" } ],",
" \"remote\": {",
" \"arguments\": {",
" \"option-defs\": [ {",
" \"code\": <option code>,",
- " \"space\": <option space>",
+ " \"space\": <option space>,",
" \"force\": false",
" } ],",
" \"remote\": {",