]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3464] Examples updated.
authorTomek Mrugalski <tomasz@isc.org>
Mon, 28 Jul 2014 02:46:26 +0000 (22:46 -0400)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 28 Jul 2014 02:46:26 +0000 (22:46 -0400)
doc/examples/kea4/several-subnets.json
doc/examples/kea4/single-subnet.json
doc/examples/kea6/several-subnets.json

index a3b04b271e5b7f10e7bdd9284906d17cc4051a40..62dc42ea6556e5bbc926b41bf92eca4ace55178b 100644 (file)
 # The following list defines subnets. Each subnet consists of at
 # least subnet and pool entries.
   "subnet4": [ 
-  {    "pool": [ "192.0.2.1 - 192.0.2.200" ],
+  {    "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
        "subnet": "192.0.2.0/24"  },
-  {    "pool": [ "192.0.3.100 - 192.0.3.200" ],
+  {    "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ],
        "subnet": "192.0.3.0/24"  },
-  {    "pool": [ "192.0.4.1 - 192.0.4.254" ],
+  {    "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ],
        "subnet": "192.0.4.0/24"  } ]
 }
 
index dc7d23f243ecbdf31848c8ad55e360f7a9e20330..a7b7024c9571a758da9113424140f1b158f425f9 100644 (file)
@@ -4,7 +4,7 @@
 
 { "Dhcp4":
 
-{ 
+{
 # Kea is told to listen on eth0 interface only.
   "interfaces": [ "eth0" ],
 
 
 # The following list defines subnets. We have only one subnet
 # here.
-  "subnet4": [ 
-  {    "pool": [ "192.0.2.1 - 192.0.2.200" ],
-       "subnet": "192.0.2.0/24"  } ]
+  "subnet4": [
+    {
+      "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+      "subnet": "192.0.2.0/24"
+    }
+  ]
 }
 
 }
index 0b2bdb41f31acbe7dff891c9428f15f2d7d3ce62..2cf012feba69b63f9733fba77534fc79a73de474 100644 (file)
 # The following list defines subnets. Each subnet consists of at
 # least subnet and pool entries.
   "subnet6": [ 
-  {    "pool": [ "2001:db8:1::/80" ],
+  {    "pools": [ { "pool": "2001:db8:1::/80" } ],
        "subnet": "2001:db8:1::/64"  },
-  {    "pool": [ "2001:db8:2::/80" ],
+  {    "pools": [ { "pool": "2001:db8:2::/80" } ],
        "subnet": "2001:db8:2::/64"  }, 
-  {    "pool": [ "2001:db8:3::/80" ],
+  {    "pools": [ { "pool": "2001:db8:3::/80" } ],
        "subnet": "2001:db8:3::/64"  },
-  {    "pool": [ "2001:db8:4::/80" ],
+  {    "pools": [ { "pool": "2001:db8:4::/80" } ],
        "subnet": "2001:db8:4::/64"  } ]
 }