From: Marcin Siodelski Date: Mon, 5 Nov 2018 11:31:10 +0000 (+0100) Subject: [#64,!41] Updated class_cmds docs per review comments. X-Git-Tag: 66-authoritative-flag-in-kea_base~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9808c612f936f28ebe93358d12afd6a4afe5b7;p=thirdparty%2Fkea.git [#64,!41] Updated class_cmds docs per review comments. --- diff --git a/doc/api/class-add.json b/doc/api/class-add.json index 44afb25c43..69e9a47900 100644 --- a/doc/api/class-add.json +++ b/doc/api/class-add.json @@ -29,5 +29,5 @@ \"text\": \"Class '' added.\", }", "resp-comment": "The command will be successful (result 0), unless the - class name is a duplicate (result 1)." + class name is a duplicate or another error occurs (result 1)." } diff --git a/doc/api/class-del.json b/doc/api/class-del.json index 35dc4003da..795a94b356 100644 --- a/doc/api/class-del.json +++ b/doc/api/class-del.json @@ -8,11 +8,16 @@ "cmd-syntax": "{ \"command\": \"class-del\", \"arguments\": { - \"name\": \"ipxe_efi_x64\", + \"name\": , } }", "resp-syntax": "{ \"result\": 0, - \"text\": \"Class 'ipxe_efi_x64' deleted.\" -}" + \"text\": \"Class '' deleted.\" +}", + "resp-comment": "The command will return a result of 3 (empty) if the client + class doesn't exist. If the client class exists, the retured + result is 0 if the deletion was successful and the result is 1 + if the deletion is unsuccessful." + } diff --git a/doc/api/class-get.json b/doc/api/class-get.json index f631a72327..7330af0e2a 100644 --- a/doc/api/class-get.json +++ b/doc/api/class-get.json @@ -1,6 +1,7 @@ { "name": "class-get", - "brief": "This command is used to return detailed information about an existing client class.", + "brief": "This command is used to return detailed information about an + existing client class.", "description": "See ", "support": [ "kea-dhcp4", "kea-dhcp6" ], "avail": "1.5.0", @@ -8,32 +9,32 @@ "cmd-syntax": "{ \"command\": \"class-get\", \"arguments\": { - \"name\": \"pxeclient\" + \"name\": } }", "resp-syntax": "{ \"result\": 0, - \"text\": \"Class 'pxeclient' definition returned\", + \"text\": \"Class '' definition returned\", \"arguments\": { \"client-classes\": [ { - \"name\": \"pxeclient\", - \"only-if-required\": true, - \"test\": \"option[vendor-class-identifier].text == 'PXEClient'\", - \"option-def\": [ - { - \"name\": \"configfile\", - \"code\": 209, - \"type\": \"string\" - } - ], - \"option-data\": [ ], - \"next-server\": \"0.0.0.0\", - \"server-hostname\": \"xfce\", - \"boot-file-name\": \"/dev/null\" + \"name\": , + \"only-if-required\": , + \"test\": , + \"option-data\": [