Parcourir la source

[3464] Examples updated.

Tomek Mrugalski il y a 10 ans
Parent
commit
56bf54ad3c

+ 3 - 3
doc/examples/kea4/several-subnets.json

@@ -27,11 +27,11 @@
 # 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"  } ]
 }
 

+ 7 - 4
doc/examples/kea4/single-subnet.json

@@ -4,7 +4,7 @@
 
 { "Dhcp4":
 
-{ 
+{
 # Kea is told to listen on eth0 interface only.
   "interfaces": [ "eth0" ],
 
@@ -31,9 +31,12 @@
 
 # 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"
+    }
+  ]
 }
 
 }

+ 4 - 4
doc/examples/kea6/several-subnets.json

@@ -29,13 +29,13 @@
 # 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"  } ]
 }