From: Suzanne Goldlust Date: Tue, 18 Dec 2018 23:16:59 +0000 (-0500) Subject: Update config.xml X-Git-Tag: 481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated_base~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05acd85ed4a53e2c57c03c0d899cd469fa2cb49e;p=thirdparty%2Fkea.git Update config.xml --- diff --git a/doc/guide/config.xml b/doc/guide/config.xml index a6c8d92aae..9ef15292f4 100644 --- a/doc/guide/config.xml +++ b/doc/guide/config.xml @@ -3,42 +3,41 @@ - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - - file, You can obtain one at http://mozilla.org/MPL/2.0/. + - file, you can obtain one at http://mozilla.org/MPL/2.0/. --> Kea Configuration - Kea is using JSON structures to represent servers' configurations. + Kea uses JSON structures to represent servers' configurations. The following sections describe how the configuration structures are organized.
JSON Configuration - JSON is notation used throughout the Kea project. The most obvious - usage is for the configuration file, but it is also used for sending commands - over Management API (see ) and for - communicating between DHCP servers and DDNS update daemon. + JSON is the notation used throughout the Kea project. The most obvious + usage is for the configuration file, but JSON is also used for sending commands + over the Management API (see ) and for + communicating between DHCP servers and the DDNS update daemon. - Typical usage assumes that the servers are started from the command line - (either directly or using a script, e.g. keactrl). + Typical usage assumes that the servers are started from the command line, + either directly or using a script, e.g. keactrl. The configuration file is specified upon startup using the -c parameter.
JSON Syntax - Configuration files for DHCPv4, DHCPv6, DDNS, Control - Agent and Netconf modules are defined in an extended JSON + Configuration files for the DHCPv4, DHCPv6, DDNS, Control + Agent, and Netconf modules are defined in an extended JSON format. Basic JSON is defined in RFC 7159 and ECMA 404. - Note that Kea 1.2.0 introduced a new parser which better adheres to - the JSON specification. In particular, the only values allowed - for boolean are true or false (all lowercase). The capitalized + In particular, the only boolean values allowed + are true or false (all lowercase). The capitalized versions (True or False) are not accepted. @@ -71,7 +70,6 @@ "Netconf", and "Logging" objects. It is possible to define additional elements but they will be ignored. - A very simple configuration for DHCPv4 could look like this: # The whole configuration starts here. @@ -111,16 +109,16 @@ The "Logging" element will be removed in Kea 1.6.0 and its contents (the "loggers" object) moved inside the configuration objects (maps) for - respective Kea modules. For example: the "Dhcp4" map will contain the + the respective Kea modules. For example, the "Dhcp4" map will contain the "loggers" object specifying logging configuration for the DHCPv4 - server. Backward compatibility will be maintained until at least Kea - 1.7.0 release: it will be possible to specify "Logging" object + server. Backward compatibility will be maintained until at least the Kea + 1.7.0 release; it will be possible to specify the "Logging" object at the top configuration level and "loggers" - objects at module configuration level. Ultimately though, support for the + objects at the module configuration level. Ultimately, support for the top-level "Logging" object will be removed. - The specification of several supported elements (e.g. "Dhcp4", + The specification of several supported elements (e.g. "Dhcp4", "Dhcp6") in a single configuration file can be confusing and works badly with the commands that fetch and write new configurations. Support for it will be removed in a future release of Kea, after which @@ -136,7 +134,7 @@ implied that the remaining elements (the global map that holds Dhcp6 and Logging) are present, but they are omitted for clarity. Usually, locations where extra parameters may appear - are denoted by an ellipsis. + are denoted by an ellipsis (...).
@@ -144,7 +142,7 @@ It is sometimes convenient to refer to a specific element in the configuration hierarchy. Each hierarchy level - is separated by a slash. If there is an array, a specific + is separated by a slash. If there is an array, a specific instance within that array is referenced by a number in square brackets (with numbering starting at zero). For example, in the above configuration the valid-lifetime in the Dhcp4