Parcourir la source

[5122] reservation-mode added to examples

Tomek Mrugalski il y a 8 ans
Parent
commit
af9381e2d7
2 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 4 3
      doc/examples/kea4/reservations.json
  2. 3 1
      doc/examples/kea6/reservations.json

+ 4 - 3
doc/examples/kea4/reservations.json

@@ -58,14 +58,15 @@
     {
        "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"
          },
 

+ 3 - 1
doc/examples/kea6/reservations.json

@@ -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