summaryrefslogtreecommitdiffstats
path: root/src/share/api/class-add.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:36:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 11:36:04 +0000
commit040eee1aa49b49df4698d83a05af57c220127fd1 (patch)
treef635435954e6ccde5eee9893889e24f30ca68346 /src/share/api/class-add.json
parentInitial commit. (diff)
downloadisc-kea-040eee1aa49b49df4698d83a05af57c220127fd1.tar.xz
isc-kea-040eee1aa49b49df4698d83a05af57c220127fd1.zip
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/share/api/class-add.json')
-rw-r--r--src/share/api/class-add.json42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/share/api/class-add.json b/src/share/api/class-add.json
new file mode 100644
index 0000000..07d8762
--- /dev/null
+++ b/src/share/api/class-add.json
@@ -0,0 +1,42 @@
+{
+ "access": "write",
+ "avail": "1.5.0",
+ "brief": [
+ "This command adds a new class to the existing server configuration."
+ ],
+ "cmd-comment": [
+ "The ``next-server``, ``server-hostname``, and ``boot-file-name`` are DHCPv4-specific. Only one client class can be added with a single command. "
+ ],
+ "cmd-syntax": [
+ "{",
+ " \"command\": \"class-add\",",
+ " \"arguments\": {",
+ " \"client-classes\": [ {",
+ " \"name\": <name of the class>,",
+ " \"test\": <test expression to be evaluated on incoming packets>,",
+ " \"option-data\": [ <option values here> ],",
+ " \"option-def\": [ <option definitions here> ],",
+ " \"next-server\": <ipv4 address>,",
+ " \"server-hostname\": <string>,",
+ " \"boot-file-name\": <name of the boot file>",
+ " } ]",
+ " }",
+ "}"
+ ],
+ "description": "See <xref linkend=\"command-class-add\"/>",
+ "hook": "class_cmds",
+ "name": "class-add",
+ "resp-comment": [
+ "The command is successful (result 0), unless the class name is a duplicate or another error occurs (result 1)."
+ ],
+ "resp-syntax": [
+ "{",
+ " \"result\": 0,",
+ " \"text\": \"Class '<class-name>' added.\"",
+ "}"
+ ],
+ "support": [
+ "kea-dhcp4",
+ "kea-dhcp6"
+ ]
+}