From: Stephen Morris Date: Fri, 20 Mar 2015 12:08:23 +0000 (+0000) Subject: [3772] Corrections to some examples in the DHCPv4 pools documentation X-Git-Tag: kea-0.9.1~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13b6c9e79de5bb8531d1796ac158f7e68d25b8a;p=thirdparty%2Fkea.git [3772] Corrections to some examples in the DHCPv4 pools documentation --- diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index 26adbce102..924bdc406d 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -567,9 +567,11 @@ temporarily override a list of interface names and listen on all interfaces. "Dhcp4": { "subnet4": [ - "subnet": "192.0.2.0/24", - "id": 1024, - ... + { + "subnet": "192.0.2.0/24", + "id": 1024, + ... + } ] } @@ -594,22 +596,22 @@ temporarily override a list of interface names and listen on all interfaces. "Dhcp4": { "subnet4": [ - "subnet": "192.0.2.0/24", - "pools": [ - { - "pool": "192.0.2.10 - 192.0.2.20" - } - ], - ... - ] + { + "subnet": "192.0.2.0/24", + "pools": [ + { "pool": "192.0.2.10 - 192.0.2.20" } + ], + ... + } + ] } - Note that subnet is defined as a simple string, but the 'pools' parameter is - actually a list of pools: for this reason, the pool definition is enclosed + Note that subnet is defined as a simple string, but the pools parameter is + actually a list of pools: for this reason, the pools definition is enclosed in square brackets, even though only one range of addresses is specified in this example. - Each pool is a structure that contains the parameters + Each pool is a structure that contains the parameters that describe a single pool. Currently there is only one parameter, pool, which gives the range of addresses in the pool. Additional parameters will be added in future @@ -624,11 +626,14 @@ temporarily override a list of interface names and listen on all interfaces. "Dhcp4": { "subnet4": [ - "pools": [ - { "pool": "192.0.2.10-192.0.2.20" }, - { "pool": "192.0.2.64/26" } - ], - ... + { + "subnet": "192.0.2.0/24", + "pools": [ + { "pool": "192.0.2.10-192.0.2.20" }, + { "pool": "192.0.2.64/26" } + ], + ... + } ], ... }