{
    "name": "class-add",
    "brief": "This command is used to create and add a new class to the existing
              server configuration.",
    "description": "See <xref linkend=\"command-class-add\"/>",
    "support": [ "kea-dhcp4", "kea-dhcp6" ],
    "avail": "1.5.0",
    "hook": "class_cmds",
    "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 defintions here> ],
           \"next-server\": <ipv4 address>,
           \"server-hostname\": <string>,
           \"boot-file-name\": <name of the boot file>
        } ]
    }
}",
    "cmd-comment": "The <command>next-server</command>,
                    <command>server-hostname</command> and
                    <command>boot-file-name</command> are DHCPv4 specific. Only
                    one client class can be added with a single command. ",
    "resp-syntax": "{
    \"result\": 0,
    \"text\": \"Class '<class-name>' added.\",
}",
    "resp-comment": "The command will be successful (result 0), unless the
                     class name is a duplicate or another error occurs (result 1)."
}
