]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5122] reservation-mode added to examples
authorTomek Mrugalski <tomasz@isc.org>
Fri, 27 Jan 2017 14:17:27 +0000 (15:17 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 27 Jan 2017 14:17:27 +0000 (15:17 +0100)
doc/examples/kea4/reservations.json
doc/examples/kea6/reservations.json

index ca6b5a7bcf8ada571a02797d8c867df0e66f7f16..db90fb2022e0a47fc4fc6d5ba3627f3042f7b2ba 100644 (file)
     {
        "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
        "subnet": "192.0.2.0/24",
-       "interface": "eth0",
+        "interface": "eth0",
+        "reservation-mode": "out-of-pool",
         "reservations": [
 
 # This is a reservation for a specific hardware/MAC address. It's a very
 # simple reservation: just an address and nothing else.
          {
              "hw-address": "1a:1b:1c:1d:1e:1f",
-             "ip-address": "192.0.2.202"
+             "ip-address": "192.0.2.201"
          },
 
 # This is a reservation for a specific client-id. It also shows
@@ -73,7 +74,7 @@
 # for any identifier type, not just client-id.
          {
              "client-id": "01:11:22:33:44:55:66",
-             "ip-address": "192.0.2.100",
+             "ip-address": "192.0.2.202",
              "hostname": "special-snowflake"
          },
 
index 5f90a5a2d3d4a761e206ad9061b8e73d6dde81a9..8a48ebc6b06e1e7a8e0b3a1fcd192596264b2dbb 100644 (file)
@@ -41,7 +41,7 @@
     {
       "subnet": "2001:db8:1::/48",
 
-      "pools": [ { "pool": "2001:db8:1::/80" } ],
+      "pools": [ { "pool": "2001:db8:1::/120" } ],
 
       "pd-pools": [
           {
@@ -52,6 +52,8 @@
       ],
       "interface": "ethX",
 
+      "reservation-mode": "out-of-pool",
+
 # Host reservations. Define several reservations, note that
 # they are all within the range of the pool of the dynamically
 # allocated address. The server will exclude the addresses from this