]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2866] Checkpoint: updated examples and arm
authorFrancis Dupont <fdupont@isc.org>
Mon, 5 Jun 2023 18:13:19 +0000 (20:13 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 26 Jun 2023 12:24:42 +0000 (14:24 +0200)
50 files changed:
doc/examples/kea4/advanced.json
doc/examples/kea4/all-options.json
doc/examples/kea4/backends.json
doc/examples/kea4/classify.json
doc/examples/kea4/classify2.json
doc/examples/kea4/dhcpv4-over-dhcpv6.json
doc/examples/kea4/dnr.json
doc/examples/kea4/global-reservations.json
doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
doc/examples/kea4/ha-load-balancing-server2-mt.json
doc/examples/kea4/hooks.json
doc/examples/kea4/leases-expiration.json
doc/examples/kea4/multiple-options.json
doc/examples/kea4/reservations.json
doc/examples/kea4/several-subnets.json
doc/examples/kea4/single-subnet.json
doc/examples/kea4/vendor-specific.json
doc/examples/kea4/vivso.json
doc/examples/kea4/with-ddns.json
doc/examples/kea6/advanced.json
doc/examples/kea6/all-options.json
doc/examples/kea6/backends.json
doc/examples/kea6/classify.json
doc/examples/kea6/classify2.json
doc/examples/kea6/dhcpv4-over-dhcpv6.json
doc/examples/kea6/dnr.json
doc/examples/kea6/duid.json
doc/examples/kea6/global-reservations.json
doc/examples/kea6/ha-hot-standby-server1-with-tls.json
doc/examples/kea6/ha-hot-standby-server2.json
doc/examples/kea6/hooks.json
doc/examples/kea6/iPXE.json
doc/examples/kea6/leases-expiration.json
doc/examples/kea6/multiple-options.json
doc/examples/kea6/mysql-reservations.json
doc/examples/kea6/pgsql-reservations.json
doc/examples/kea6/reservations.json
doc/examples/kea6/several-subnets.json
doc/examples/kea6/shared-network.json
doc/examples/kea6/simple.json
doc/examples/kea6/softwire46.json
doc/examples/kea6/tee-times.json
doc/examples/kea6/with-ddns.json
doc/sphinx/arm/classify.rst
doc/sphinx/arm/config.rst
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
doc/sphinx/arm/hooks-ha.rst
doc/sphinx/arm/hooks-legal-log.rst
doc/sphinx/arm/hooks.rst

index 81d182a00fc5f068b50d3986935c0abc42b3de90..9191226aaf32914a4fa0fdf3ca4adc1e24bf9dec 100644 (file)
                 "pool":  "192.0.2.1 - 192.0.2.200",
                 "user-context": { "info": "what a large pool" }
             } ],
+            "id": 1,
             "subnet": "192.0.2.0/24",
             "user-context": {
                 "comment": "Our first subnet!"
             // This causes Kea to ignore client-id values in this subnet
             // and rely exclusively on MAC addresses.
             "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ],
+            "id": 2,
             "subnet": "192.0.3.0/24",
             "match-client-id": false
         },
         {
             "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ],
+            "id": 3,
             "subnet": "192.0.4.0/24",
 
             // Sometimes the relay may use an IPv4 address that does
             // This causes Kea to reply to requests for unknown IP addresses
             // with a DHCPNAK message.
             "pools": [ { "pool": "192.0.5.100 - 192.0.5.200" } ],
+            "id": 4,
             "subnet": "192.0.5.0/24",
             "authoritative": true
         }
index a19091dcc9cfee52d9d21dab3652dd84484012b8..9e3e4cf81d12a865e523ebfb030a79d3ed83008d 100644 (file)
             "space": "docsis3-v4"
           }
         ],
+        "id": 1,
         "subnet": "192.0.2.0/24"
       }
     ]
index 40e0c39d7f55e3ff40c3c563f3e4429ecc9190cf..d8e037bdae87e0e75ce73fd132b42dff04f4c1ff 100644 (file)
@@ -80,6 +80,7 @@
   "subnet4": [
     {
        "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+       "id":1 ,
        "subnet": "192.0.2.0/24",
        "interface": "eth0"
     }
index 8f031ade6429f20b65703213ab54942e4933013f..47bbdcbc1bcb2805462bd569c358f921bcc1a29a 100644 (file)
@@ -81,6 +81,7 @@
     // This one is for VoIP devices only.
     {
         "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+        "id": 1,
         "subnet": "192.0.2.0/24",
         "client-class": "VoIP",
         "interface": "eth0"
@@ -93,6 +94,7 @@
     // be assigned to this class.
     {
         "pools": [ { "pool":  "192.0.3.1 - 192.0.3.200" } ],
+        "id": 2,
         "subnet": "192.0.3.0/24",
         "reservations": [
         {
            } ],
 
         "subnet": "192.0.4.0/23",
+        "id": 3,
         "interface": "eth1"
     }
   ],
index c7a9e0ab1d06c465499b7aeb490fc13a34712baa..ec9d58b7ff6a0ea34eef2ec465b5ca6ea7abcb3d 100644 (file)
@@ -89,6 +89,7 @@
     {
 // This one is for VoIP devices only.
         "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+        "id": 1,
         "subnet": "192.0.2.0/24",
         "client-class": "VoIP",
         "interface": "eth0"
 // be assigned to this class.
     {
         "pools": [ { "pool":  "192.0.3.1 - 192.0.3.200" } ],
+        "id": 2,
         "subnet": "192.0.3.0/24",
         "reservations": [
         {
            {
                "pool":  "192.0.5.1 - 192.0.5.200"
            } ],
+           "id": 3,
            "subnet": "192.0.4.0/23",
            "interface": "eth1"
         },
                    "client-class": "KNOWN"
                 }
             ],
+            "id": 4,
             "subnet": "192.0.8.0/23",
             "reservations": [
                 {  "hw-address": "00:00:00:11:22:33", "hostname": "h1" },
index 729d4a15b11474073894e77c2d70eadfe7fec978..a2b3d43fb8e6cb232e60fe3760d09c98bb464ea4 100644 (file)
@@ -19,7 +19,9 @@
   "valid-lifetime": 4000,
 
   "subnet4": [
-   {    "subnet": "10.10.10.0/24",
+   {
+        "id": 100,
+        "subnet": "10.10.10.0/24",
 // Don't forget the "4o6-" before "interface" here!
         "4o6-interface": "eth0",
         "4o6-subnet": "2001:db8:1:1::/64",
index d386d07660b8b7b4dced4851380566c0196d625d..eda26e6b6a7136e0540d126be62de4d0086895a1 100644 (file)
@@ -63,6 +63,7 @@
     // here. We tell Kea that it is directly available over local interface.
     "subnet4": [
       {
+        "id": 1,
         "interface": "eth0",
         "pools": [
           {
index 0e8be68fbb07cccde44d26d56e7316d06d95dac4..8171eb50cf8a5951c4dd743b028f0d42ffc1a79d 100644 (file)
     "subnet4": [
         {
            "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+           "id": 1,
            "subnet": "192.0.2.0/24",
            "interface": "eth0"
         }
index 66afc3238ec163a8ca9affbc75e52bf6be19e2e8..5e6802647c93f29fce52b42129be32db4e092393 100644 (file)
     // This example contains a single subnet declaration.
     "subnet4": [
         {
+            // Subnet id.
+            "id": 1,
+
             // Subnet prefix.
             "subnet": "192.0.3.0/24",
 
index 4cc712a43931ea83ac2de67f40606188226e71c6..ddfadb0cfdc04dfecdff6bdbe954a47a6159bcc7 100644 (file)
     // This example contains a single subnet declaration.
     "subnet4": [
         {
+            // Subnet id.
+            "id": 1,
+
             // Subnet prefix.
             "subnet": "192.0.3.0/24",
 
index 3b96d621ed8fb63979900e950a918f141548855c..d82db2b485e6e03acc394e25ba4157b590efd28c 100644 (file)
@@ -21,6 +21,7 @@
   "subnet4": [
     {
       "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ],
+      "id": 1,
       "subnet": "192.0.2.0/24",
       "interface": "eth0"
     }
index ce73a57a3b3a8d9fe08c0680971fcc56426dfa2e..629b12654bdf395e2f27e8bdaed4f35660b12e3e 100644 (file)
@@ -51,6 +51,7 @@
   "subnet4": [
     {
        "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+       "id": 1,
        "subnet": "192.0.2.0/24",
        "interface": "eth0"
     }
index cded8831162c3c3da35eb47e73510af0a3402e90..8252d503b88991d899cf4192578410dbffc02306 100644 (file)
@@ -37,6 +37,7 @@
 // for the pool.
   "subnet4": [
     {
+       "id": 1,
        "subnet": "192.0.2.0/24",
        "option-data": [
             // When specifying options, you typically need to specify
index b316740ead9e7f5ccd02c06b9f50ce16b6c1dae5..58070bf3b4c005033e1269c1be1462a187da4a1e 100644 (file)
@@ -61,6 +61,7 @@
   "subnet4": [
     {
         "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+        "id": 1,
         "subnet": "192.0.2.0/24",
         "interface": "eth0",
         // This directive tells Kea that reservations may be made both in-pool
index 9bad6a20ef9661e244a9b53eaed1b940cd50b14d..bcdf3a70ee3043f4bee4db278ddfdbfb1bfe21c2 100644 (file)
   "subnet4": [
   {
       "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+      "id": 1,
       "subnet": "192.0.2.0/24"
   },
   {
 // This particular subnet has match-client-id value changed.
       "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ],
+      "id": 2,
       "subnet": "192.0.3.0/24",
       "match-client-id": false
   },
   {
       "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ],
+      "id": 3,
       "subnet": "192.0.4.0/24"
   } ],
 
index 701fc56be331f22eb0902e94b524d9565828eda1..49457fecb0b83e2b214b7a04e2b70978ed2e1bf6 100644 (file)
@@ -34,6 +34,7 @@
   "subnet4": [
     {
        "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
+       "id": 1,
        "subnet": "192.0.2.0/24",
        "interface": "eth0"
     }
index b48c2d08245c480d6229c0958f22ad2c0ec62b8b..83b40fdd2ce7c02071c0cf17d1621178d8a0538d 100644 (file)
@@ -88,7 +88,8 @@
                         "pool": "192.0.2.50-192.0.2.50"
                     }
                 ],
-                "subnet": "192.0.2.0/24"
+                "subnet": "192.0.2.0/24",
+                "id": 1
             }
         ]
     }
index fe1ccec2f5ba6c391963a8dbf54d1bbf259fd114..f69f18989c778a6f638181038e2b33c18b188745 100644 (file)
@@ -76,6 +76,7 @@
 // here. We tell Kea that it is directly available over local interface.
         "subnet4": [
             {
+                "id": 1,
                 "interface": "eth0",
                 "pools": [
                     {
index 70072f5be225da09632a35fb0426786d5129bddb..a4f12e4a3ac2cb2d07e1f758419a426167a60bd4 100644 (file)
@@ -35,7 +35,8 @@
     {
        "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
        "subnet": "192.0.2.0/24",
-       "interface": "eth0"
+       "interface": "eth0",
+       "id": 1
     }
   ],
 
index 3d9747d715b1658f11550e04ce313724afbe1d4c..995f6937155e5b1d06b401b3a0dc437c89a02d6a 100644 (file)
         }
         ], // end of pools
 
+        "id": 1,
         "subnet": "2001:db8:1::/64",
         "interface": "eth0",
 
index 844a921cf9ec826a6f5762b1fad6181b878e6dc0..eee66349c3da79c0800beeb100da4813b7655e96 100644 (file)
             "space": "docsis3-v6"
           }
         ],
-        "subnet": "2001:db8:d0c5:15::/64"
+        "subnet": "2001:db8:d0c5:15::/64",
+        "id": 1
       }
     ]
   }
index 7e16244877fb48da081f21196fa94b824e122527..52ed3ec599d776c731bf8da3f208f5c32d1927be 100644 (file)
@@ -81,6 +81,7 @@
   "subnet6": [
     {
       "pools": [ { "pool": "2001:db8:1::/80" } ],
+      "id": 1,
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
     }
index a5fc2e98a0166996caab96d63d0d400c89f8eb7a..796926c683367db371e2a5632f7777ddbd1afe8f 100644 (file)
@@ -56,6 +56,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+        "id": 1,
         "pools": [ { "pool": "2001:db8:1::/80" } ],
         "subnet": "2001:db8:1::/64",
         "client-class": "cable-modems",
@@ -66,6 +67,7 @@
     // DUID 01:02:03:04:05:0A:0B:0C:0D:0E. This client will always be assigned
     // to this class.
     {
+        "id": 2,
         "pools": [ { "pool": "2001:db8:2::/80" } ],
         "subnet": "2001:db8:2::/64",
         "reservations": [
@@ -79,6 +81,7 @@
     // The following subnet contains a pool with a class constraint: only
     // clients which belong to the class are allowed to use this pool.
     {
+        "id": 3,
         "pools": [
            {
                "pool": "2001:db8:4::/80",
index 474c3932b1cf65a88ab6a7b749093575b8734265..ffdf32d808a19fb8b4f4a077d037f48bf28824a0 100644 (file)
@@ -67,6 +67,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+        "id": 1,
         "pools": [ { "pool": "2001:db8:1::/80" } ],
         "subnet": "2001:db8:1::/64",
         "client-class": "cable-modems",
@@ -76,6 +77,7 @@
 // DUID 01:02:03:04:05:0A:0B:0C:0D:0E. This client will always be assigned
 // to this class.
     {
+        "id": 2,
         "pools": [ { "pool": "2001:db8:2::/80" } ],
         "subnet": "2001:db8:2::/64",
         "reservations": [
@@ -89,6 +91,7 @@
 // The following subnet contains a pool with a class constraint: only
 // clients which belong to the class are allowed to use this pool.
     {
+        "id": 3,
         "pools": [
            {
                "pool": "2001:db8:4::/80",
 // This happens after subnet selection and before address allocation
 // from pools.
     {
+        "id": 4,
         "pools": [
             {
                "pool": "2001:db8:8::/64",
index e811ca0d3efbfc2cffba52d21556281c69b0be26..f09a18c50b20f6f58041d97cfc8c299dccaf11b3 100644 (file)
@@ -22,7 +22,8 @@
   "rebind-timer": 2000,
 
   "subnet6": [
-   {    "subnet": "2001:db8:1:1::/64",
+   {    "id": 1,
+        "subnet": "2001:db8:1:1::/64",
         "interface": "eth0",
         "pools": [ { "pool": "2001:db8:1:1::1:0/112" } ] }
   ],
index b43fe230627fca522501e5610c51f00f5840cbe3..e902f5f20946793fc9714bd9328881ffc04bf95f 100644 (file)
@@ -60,6 +60,7 @@
     // least subnet and pool entries.
     "subnet6": [
       {
+        "id": 1,
         "pools": [ { "pool": "2001:db8:1::/80" } ],
         "subnet": "2001:db8:1::/64",
         "interface": "eth0"
@@ -82,4 +83,4 @@
       }
     ]
   }
-}
\ No newline at end of file
+}
index 49f1874cce2fe0d9a5e371083f514bdf4c07f8e4..0bc3753d119601589a7bdad7d8b42335be257945 100644 (file)
@@ -54,6 +54,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+      "id": 1,
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
index c7fac5194380ee8984ea2a82bf9b4c1b9c8764f0..59cc873cd43c9e3ea0720d7479eb527886f5324f 100644 (file)
 // are the same as in the regular scenario.
     "subnet6": [
         {
+            "id": 1,
+
             "subnet": "2001:db8::/47",
 
             "pools": [ { "pool": "2001:db8::/64" } ],
index f9c604be3bb63dc9683d4b9d7168ab3ade51cc75..3a586f9c162e94d5ab44e3824d717f4218bec4d9 100644 (file)
     // least subnet and pool entries.
     "subnet6": [
         {
+            "id": 1,
+
             "subnet": "2001:db8:1::/64",
 
             "pools": [
index bb1604e50d817b4990a998ad10cb2f26f8ca0566..43c751bf12075c5294362c7eb0603f4f71f8898a 100644 (file)
     // least subnet and pool entries.
     "subnet6": [
         {
+            "id": 1,
+
             "subnet": "2001:db8:1::/64",
 
             "pools": [
index 73a7d0708deb8c9b789d81bf88760e15f0e877cc..4677250e07744519e68f5f73a9c09d24245cd805 100644 (file)
@@ -24,6 +24,7 @@
 // Define a single subnet.
   "subnet6": [
     {
+      "id": 1,
       "pools": [
         {
           "pool": "2001:db8:1::/80",
index 58f81b464e932334ce7ee398aecc82b2db91ed5c..108233b1138b2b1e7c0b461a427f330a36e75c8c 100644 (file)
@@ -60,6 +60,7 @@
       ],
       "subnet6": [
          {
+            "id": 1,
             "subnet": "2001:db8::/64"
          }
       ]
index 8c2c1759c10191ab2a8767288490bfaf744d32f6..46a410ff3a1c51ab5b37eb9349a416189651e067 100644 (file)
@@ -58,6 +58,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+      "id": 1,
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
index 2d4defe0eeb93b31347481d8eb78c3b5d5321ba2..eae1d8e74ba8df9d34ac5792bbc74adabb24be5d 100644 (file)
              ]
          }
       ],
+      "id": 1,
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
     }
index 74beb2c631860b22da75ca436df76c73fe164cb2..f8a99a059f5dd093833084424d7612016b33395b 100644 (file)
@@ -65,6 +65,8 @@
 // id will be used to search for the reservations within the database.
   "subnet6": [
     {
+      "id": 1,
+
       "subnet": "2001:db8:1::/48",
 
       "pools": [ { "pool": "2001:db8:1::/80" } ],
index 6c610196504ebf00d19d1fabf21260c009393192..35b571e189294c92d525bdf631530b3a7a02f65e 100644 (file)
@@ -62,6 +62,8 @@
 // id will be used to search for the reservations within the database.
   "subnet6": [
     {
+      "id": 1,
+
       "subnet": "2001:db8:1::/48",
 
       "pools": [ { "pool": "2001:db8:1::/80" } ],
index a41eb204a6bdfe905dc9880a722a8f87e4c6e42d..95a0e9df1b8843742ac8741698927b96c941aee2 100644 (file)
@@ -41,6 +41,8 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+        "id": 1,
+
         "subnet": "2001:db8:1::/48",
 
         // This directive tells Kea that reservations may be made both in-pool
index 8ef391674d550ceabad15fe7ec04caa7bf627478..b32b56a3aaf2b52245a29d65525425d3296453dc 100644 (file)
 // least subnet and pool entries.
   "subnet6": [
   {    "pools": [ { "pool": "2001:db8:1::/80" } ],
-       "subnet": "2001:db8:1::/64"  },
+       "id": 1, "subnet": "2001:db8:1::/64"  },
   {    "pools": [ { "pool": "2001:db8:2::/80" } ],
-       "subnet": "2001:db8:2::/64"  },
+       "id": 2, "subnet": "2001:db8:2::/64"  },
   {    "pools": [ { "pool": "2001:db8:3::/80" } ],
-       "subnet": "2001:db8:3::/64"  },
+       "id": 3, "subnet": "2001:db8:3::/64"  },
   {    "pools": [ { "pool": "2001:db8:4::/80" } ],
-       "subnet": "2001:db8:4::/64"  } ],
+       "id": 4, "subnet": "2001:db8:4::/64"  } ],
 
 // The following configures logging. It assumes that messages with at
 // least informational level (info, warn, error and fatal) should be
index 71ded47f6dd611dd8dae3745e5da83e60507fc2f..0b3416e7db956cc864d013e720ac6e6bcf7887a4 100644 (file)
@@ -27,6 +27,7 @@
         // This is regular subnet. It's not part of any shared-network.
         "subnet6": [
             {
+                "id": 1,
                 "pools": [ { "pool": "2001:db8:2::/80" } ],
                 "subnet": "2001:db8:2::/64",
                 "interface": "eth0"
                     // are out-of-pool.
                     // Ignored when reservations-in-subnet is false.
                     "reservations-out-of-pool": false,
+                    "id": 2,
                     "subnet": "2001:db8:1::/64",
                     "pools": [ { "pool": "2001:db8:1:0:abcd::/80" } ],
                     "valid-lifetime": 40
                     // are out-of-pool.
                     // Ignored when reservations-in-subnet is false.
                     "reservations-out-of-pool": false,
+                    "id": 3,
                     "subnet": "3000::/16",
                     "valid-lifetime": 40
                 }
index 342c035320b1cac8b81912126c8949b8e273e551..06e51e93bfcd950655a7a4184af0a71139ba86fc 100644 (file)
@@ -35,6 +35,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+      "id": 1,
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
index 85d1d0cdde826a3648788f957c9744dc070978f0..e04821f22f53a8f21a07ea6b848ae632b846718a 100644 (file)
@@ -30,6 +30,7 @@
 // least subnet and pool entries.
   "subnet6": [
     {
+      "id": 1,
       "pools": [ { "pool": "2001:db8:1::/80" } ],
       "subnet": "2001:db8:1::/64",
       "interface": "eth0",
index 0a0e8605f6658f31d8474dc973c0ed9779b95b9a..5db9c98d5727b3e999db177073c5999171791b1a 100644 (file)
   "subnet6": [
   {
         //  This subnet use default calculation
+        "id": 1,
         "subnet": "2001:db8:1::/64",
         "pools": [ { "pool": "2001:db8:1::/80" } ]
   },
   {
         // This subnet will use explicit values. Explicit
         // values override calculation.
+       "id": 2,
        "subnet": "2001:db8:2::/64",
        "pools": [ { "pool": "2001:db8:2::/80" } ],
        "renew-timer":  1000,
@@ -44,6 +46,7 @@
   },
   {
         // This subnet will use custom percents
+       "id": 3,
        "subnet": "2001:db8:3::/64",
        "pools": [ { "pool": "2001:db8:3::/80" } ],
        "t1-percent": .45,
index 660213bba053078bf18719edf72287bc84fb4888..58dd7ada34ccc194f82fce0e325c41ed9bd73002 100644 (file)
@@ -36,6 +36,7 @@
   "subnet6": [
     {
       "pools": [ { "pool": "2001:db8:1::/80" } ],
+      "id": 1,
       "subnet": "2001:db8:1::/64",
       "interface": "eth0"
     }
index 2d0aac2e5221e116d3746cabb5cb01eb2bba001d..a4593d8801239de0741464ddfbe705c52c97aa5e 100644 (file)
@@ -997,6 +997,7 @@ this subnet. Such a configuration can be achieved in the following way:
        ],
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ],
                "client-class": "Client_foo"
@@ -1031,6 +1032,7 @@ configuration restricts use of the addresses in the range 2001:db8:1::1 to
        ],
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "pools": [ { "pool": "2001:db8:1::-2001:db8:1::ffff" } ],
                "client-class": "Client_enterprise"
@@ -1075,6 +1077,7 @@ to use this pool. Such a configuration can be achieved in the following way:
        ],
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [
                    {
@@ -1113,6 +1116,8 @@ configuration restricts use of the addresses in the range 2001:db8:1::1 to
        ],
        "subnet6": [
            {
+               "id": 1,
+
                "subnet": "2001:db8:1::/64",
 
                "pools": [
index 10e88751a7d6a4928a2ff54cfdce7b1a1626a31d..46833a34e57614fec7ecae5f34a21b15ae1de749 100644 (file)
@@ -85,7 +85,8 @@ A very simple configuration for DHCPv4 could look like this:
            "rebind-timer": 2000,
            "subnet4": [{
               "pools": [ { "pool": "192.0.2.1-192.0.2.200" } ],
-              "subnet": "192.0.2.0/24"
+              "subnet": "192.0.2.0/24",
+              "id": 1
            }],
 
           # Now loggers are inside the DHCPv4 object.
@@ -133,6 +134,7 @@ example JSON comment looks like this:
 
    "Dhcp4": {
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.2.0/24",
            "pools": [{ "pool": "192.0.2.10 - 192.0.2.20" }],
            "comment": "second floor"
@@ -157,6 +159,7 @@ example user context looks like this:
 
    "Dhcp4": {
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.2.0/24",
            "pools": [{ "pool": "192.0.2.10 - 192.0.2.20" }],
            "user-context": {
index 5b2d94daa972f228ed4fa822b2f0883c62c5bef4..b23622bb6d565c27a896a9b723367f6edd3f82b3 100644 (file)
@@ -155,6 +155,7 @@ be created. The basic configuration is as follows:
    # Finally, we list the subnets from which we will be leasing addresses.
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [
                    {
@@ -300,14 +301,17 @@ syntax would be used:
    {
    "subnet4": [
        {
+           "id": 1,
            "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
            "subnet": "192.0.2.0/24"
        },
        {
+           "id": 2,
            "pools": [ { "pool": "192.0.3.100 - 192.0.3.200" } ],
            "subnet": "192.0.3.0/24"
        },
        {
+           "id": 3,
            "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ],
            "subnet": "192.0.4.0/24"
        }
@@ -2951,6 +2955,7 @@ options and sub-options, using the respective option code.
    ],
    "subnet4": [
        {
+           "id": 1,
            "subnet": "192.0.2.0/24",
            "reservations": [
                {
@@ -3019,6 +3024,7 @@ configuration looks like this:
    "Dhcp4": {
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "option-data": [
                {
@@ -3210,6 +3216,7 @@ class are allowed to use that pool.
    "Dhcp4": {
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ],
                "client-class": "VENDOR_CLASS_docsis3.0"
@@ -3249,6 +3256,7 @@ DNS servers set to 192.0.2.1 and 192.0.2.2.
        ],
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ],
                "client-class": "Client_foo"
@@ -4044,11 +4052,13 @@ for a particular subnet. Consider the following simplified server configuration:
        "match-client-id": true,
        "subnet4": [
        {
+           "id": 1,
            "subnet": "192.0.10.0/24",
            "pools": [ { "pool": "192.0.2.23-192.0.2.87" } ],
            "match-client-id": false
        },
        {
+           "id": 1,
            "subnet": "10.0.0.0/8",
            "pools": [ { "pool": "10.0.0.23-10.0.2.99" } ]
        }
@@ -4188,6 +4198,7 @@ ISC tested the following configuration:
 
        "subnet4": [
        {
+           "id": 1,
            "subnet": "10.10.10.0/24",
            "4o6-interface": "eno33554984",
            "4o6-subnet": "2001:db8:1:1::/64",
@@ -4462,6 +4473,7 @@ enable the option for the whole subnet, the following configuration can be used:
     {
     "subnet4": [
         {
+            "id": 1,
             "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
             "subnet": "192.0.2.0/24",
             "option-data": [
@@ -4645,6 +4657,7 @@ in a subnet:
    {
    "subnet4": [
        {
+           "id": 1,
            "pools": [ { "pool":  "192.0.2.1 - 192.0.2.200" } ],
            "subnet": "192.0.2.0/24",
            "interface": "eth0",
@@ -4839,6 +4852,7 @@ configuration:
        {
            "subnet4": [
            {
+               "id": 1,
                "subnet": "10.0.0.0/24",
                "pools": [ { "pool": "10.0.0.10-10.0.0.100" } ],
                "ddns-qualifying-suffix": "example.isc.org.",
@@ -4868,6 +4882,7 @@ different clients with different domain names:
        {
            "subnet4": [
            {
+               "id": 1,
                "subnet": "10.0.0.0/24",
                "pools": [ { "pool": "10.0.0.10-10.0.0.100" } ],
                "reservations": [
@@ -4924,9 +4939,11 @@ example demonstrates how standard options can be defined:
                }
                ]
            }
-           ]
+           ],
+           ...
        }
-       ]
+       ],
+       ...
    }
 
 Vendor-specific options can be reserved in a similar manner:
@@ -4952,9 +4969,11 @@ Vendor-specific options can be reserved in a similar manner:
                }
                ]
            }
-           ]
+           ],
+           ...
        }
-       ]
+       ],
+       ...
    }
 
 Options defined at the host level have the highest priority. In other words,
@@ -4987,9 +5006,11 @@ message fields:
                "server-hostname": "server-hostname.example.org",
                "boot-file-name": "/tmp/bootfile.efi"
            }
-           ]
+           ],
+           ...
        }
-       ]
+       ],
+       ...
    }
 
 Note that those parameters can be specified in combination with other
@@ -5037,6 +5058,7 @@ to them.
        ],
        "subnet4": [
        {
+           "id": 1,
            "subnet": "10.0.0.0/24",
            "pools": [ { "pool": "10.0.0.10-10.0.0.100" } ],
            "reservations": [
@@ -5254,6 +5276,7 @@ An example configuration that disables reservations looks as follows:
       "Dhcp4": {
         "subnet4": [
           {
+            "id": 1,
             "pools": [
               {
                 "pool": "192.0.2.10-192.0.2.100"
@@ -5285,6 +5308,7 @@ An example configuration using global reservations is shown below:
         ],
         "subnet4": [
           {
+            "id": 1,
             "pools": [
               {
                 "pool": "192.0.2.10-192.0.2.100"
@@ -5401,7 +5425,8 @@ An example configuration that disables reservations looks as follows:
           {
             "reservations-global": false,
             "reservations-in-subnet": false,
-            "subnet": "192.0.2.0/24"
+            "subnet": "192.0.2.0/24",
+            "id": 1
           }
         ]
       }
@@ -5432,7 +5457,8 @@ An example configuration using global reservations is shown below:
                 "pool": "192.0.2.10-192.0.2.100"
               }
             ],
-            "subnet": "192.0.2.0/24"
+            "subnet": "192.0.2.0/24",
+            "id": 1
           }
         ]
       }
@@ -5554,6 +5580,7 @@ following can be used:
        "valid-lifetime": 600,
        "subnet4": [
        {
+           "id": 1,
            "subnet": "10.0.0.0/24",
            # It is replaced by the "reservations-global",
            # "reservations-in-subnet", and "reservations-out-of-pool"
@@ -5613,6 +5640,7 @@ within the subnet as follows:
         ],
         "subnet4": [
             {
+                "id": 1,
                 "subnet": "192.0.2.0/24",
                 "reservations": [
                     {
@@ -5689,6 +5717,7 @@ following example:
             {
             "subnet4": [
                 {
+                    "id": 1,
                     "subnet": "192.0.2.0/24",
                     "pools": [
                         {
@@ -5698,6 +5727,7 @@ following example:
                     ]
                 },
                 {
+                    "id": 2,
                     "subnet": "192.0.3.0/24",
                     "pools": [
                         {
@@ -5784,6 +5814,7 @@ the same IP address but different MAC addresses:
        "ip-reservations-unique": false,
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "reservations": [
                    {
@@ -5873,6 +5904,7 @@ have reservations) will get their default router configured.
 
         "subnet4": [
             {
+                "id": 1,
                 "subnet": "192.0.2.0/24",
                 "pools": [
                     {
@@ -5913,6 +5945,7 @@ redirects those customers to a captive portal urging them to bring their account
 
         "subnet4": [
             {
+                "id": 1,
                 "subnet": "192.0.2.0/24",
                 "pools": [
                     {
@@ -6006,10 +6039,12 @@ introduced:
                # There are two subnets in this example.
                "subnet4": [
                    {
+                       "id": 1,
                        "subnet": "10.0.0.0/8",
                        "pools": [ { "pool":  "10.0.0.1 - 10.0.0.99" } ]
                    },
                    {
+                       "id": 2,
                        "subnet": "192.0.2.0/24",
                        "pools": [ { "pool":  "192.0.2.100 - 192.0.2.199" } ]
                    }
@@ -6025,6 +6060,7 @@ introduced:
        # This is a regular subnet. It is not part of any shared network.
        "subnet4": [
            {
+               "id": 3,
                "subnet": "192.0.3.0/24",
                "pools": [ { "pool":  "192.0.3.1 - 192.0.3.200" } ],
                "interface": "eth1"
@@ -6076,6 +6112,7 @@ then override its value in the subnet scope. For example:
 
            "subnet4": [
                {
+                   "id": 1,
                    "subnet": "10.0.0.0/8",
                    "pools": [ { "pool":  "10.0.0.1 - 10.0.0.99" } ],
 
@@ -6092,6 +6129,7 @@ then override its value in the subnet scope. For example:
                    } ]
                },
                {
+                    "id": 2,
                     "subnet": "192.0.2.0/24",
                     "pools": [ { "pool":  "192.0.2.100 - 192.0.2.199" } ],
 
@@ -6141,11 +6179,13 @@ example of what **NOT** to do:
            "name": "office-floor-2",
            "subnet4": [
                {
+                   "id": 1,
                    "subnet": "10.0.0.0/8",
                    "pools": [ { "pool":  "10.0.0.1 - 10.0.0.99" } ],
                    "interface": "eth0"
                },
                {
+                    "id": 2,
                     "subnet": "192.0.2.0/24",
                     "pools": [ { "pool":  "192.0.2.100 - 192.0.2.199" } ],
 
@@ -6177,10 +6217,12 @@ shown in the example below.
 
            "subnet4": [
                {
+                   "id": 1,
                    "subnet": "10.0.0.0/8",
                    "pools": [ { "pool":  "10.0.0.1 - 10.0.0.99" } ]
                },
                {
+                    "id": 2,
                     "subnet": "192.0.2.0/24",
                     "pools": [ { "pool":  "192.0.2.100 - 192.0.2.199" } ]
                }
@@ -6209,6 +6251,7 @@ of what **NOT** to do:
            "name": "kakapo",
            "subnet4": [
                {
+                   "id": 1,
                    "subnet": "192.0.2.0/26",
                    "relay": {
                        "ip-addresses": [ "192.1.1.1" ]
@@ -6216,6 +6259,7 @@ of what **NOT** to do:
                    "pools": [ { "pool": "192.0.2.63 - 192.0.2.63" } ]
                },
                {
+                   "id": 2,
                    "subnet": "10.0.0.0/24",
                    "relay": {
                        # Specifying a different relay address for this
@@ -6248,10 +6292,12 @@ shared network.
            },
            "subnet4": [
                {
+                   "id": 1,
                    "subnet": "192.0.2.0/26",
                    "pools": [ { "pool": "192.0.2.63 - 192.0.2.63" } ]
                },
                {
+                   "id": 2,
                    "subnet": "10.0.0.0/24",
                    "pools": [ { "pool": "10.0.0.16 - 10.0.0.16" } ]
                }
@@ -6309,10 +6355,12 @@ following example:
                "interface": "eth0",
                "subnet4": [
                    {
+                       "id": 1,
                        "subnet": "192.0.2.0/26",
                        "pools": [ { "pool": "192.0.2.1 - 192.0.2.63" } ]
                    },
                    {
+                       "id": 2,
                        "subnet": "10.0.0.0/24",
                        "pools": [ { "pool": "10.0.0.2 - 10.0.0.250" } ],
                        "client-class": "b-devices"
@@ -6359,11 +6407,13 @@ on option 93 values.
                "interface": "eth0",
                "subnet4": [
                    {
+                       "id": 1,
                        "subnet": "192.0.2.0/26",
                        "pools": [ { "pool": "192.0.2.1 - 192.0.2.63" } ],
                        "client-class": "a-devices"
                    },
                    {
+                       "id": 2,
                        "subnet": "10.0.0.0/24",
                        "pools": [ { "pool": "10.0.0.2 - 10.0.0.250" } ],
                        "client-class": "b-devices"
@@ -6574,6 +6624,7 @@ selects that subnet for a relay with address 10.0.0.1.
      "Dhcp4": {
        "subnet4": [
            {
+               "id": 1,
                "subnet": "192.0.2.0/24",
                "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ],
                "relay": {
@@ -6610,6 +6661,7 @@ everything connected behind the modems should get addresses from the
    "Dhcp4": {
        "subnet4": [
            {
+               "id": 1,
                "subnet": "10.1.1.0/24",
                "pools":  [ { "pool": "10.1.1.2 - 10.1.1.20" } ],
                "client-class": "docsis3.0",
@@ -6618,6 +6670,7 @@ everything connected behind the modems should get addresses from the
                }
            },
            {
+               "id": 2,
                "subnet": "192.0.2.0/24",
                "pools": [ { "pool": "192.0.2.10 - 192.0.2.20" } ],
                "relay": {
@@ -7409,6 +7462,7 @@ of LED devices could be configured in the following way:
    "Dhcp4": {
        "subnet4": [
            {
+           "id": 1,
            "subnet": "192.0.2.0/24",
            "pools": [
            {
index ac635ce6c03951299bfedf4a5885db84606bdf0b..245d740eefc3fd041c6e087a5d78bd849e0ed5e2 100644 (file)
@@ -156,6 +156,7 @@ be created. The basic configuration is as follows:
    # Finally, we list the subnets from which we will be leasing addresses.
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "pools": [
                    {
@@ -261,10 +262,12 @@ syntax would be used:
    {
    "subnet6": [
        {
+           "id": 1,
            "pools": [ { "pool": "2001:db8:1::/112" } ],
            "subnet": "2001:db8:1::/64"
        },
        {
+           "id": 2,
            "pools": [ { "pool": "2001:db8:2::1-2001:db8:2::ffff" } ],
            "subnet": "2001:db8:2::/64"
        }
@@ -1143,12 +1146,14 @@ second subnet, use a command similar to the following:
    "Dhcp6": {
        "subnet6": [
        {
+           "id": 1,
            "subnet": "2001:db8:1::/64",
            "pools": [
                { "pool": "2001:db8:1::1-2001:db8:1::ffff" }
            ]
        },
        {
+           "id": 2,
            "subnet": "2001:db8:2::/64",
            "pools": [
                { "pool": "2001:db8:2::/64" }
@@ -1195,6 +1200,7 @@ for the subnet:
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:d8b:1::/64",
                "pd-pools": [
                    {
@@ -1230,6 +1236,7 @@ and which is delegated a prefix from this pool.
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/48",
                "pd-pools": [
                    {
@@ -2605,6 +2612,7 @@ may be configured as follows:
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:beef::/48",
                "pools": [
                     {
@@ -2634,6 +2642,7 @@ shown below:
      "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:beef::/48",
                "rapid-commit": true,
                "pools": [
@@ -2704,6 +2713,7 @@ with a value of "vlan123":
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:beef::/48",
                "pools": [
                     {
@@ -2869,6 +2879,7 @@ servers set to 2001:db8:0::1 and 2001:db8:2::1.
        ],
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "pools": [ { "pool": "2001:db8:1::-2001:db8:1::ffff" } ],
                "client-class": "Client_enterprise"
@@ -2888,6 +2899,7 @@ eRouter1.0 client class are allowed to use that pool.
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "pools": [
                     {
@@ -3559,6 +3571,7 @@ ISC tested the following configuration:
        "rebind-timer": 2000,
 
        "subnet6": [ {
+           "id": 1,
            "subnet": "2001:db8:1:1::/64",
            "interface": "eno33554984",
            "pools": [ { "pool": "2001:db8:1:1::1:0/112" } ]
@@ -3936,6 +3949,7 @@ specific hosts:
    {
    "subnet6": [
        {
+           "id": 1,
            "subnet": "2001:db8:1::/48",
            "pools": [ { "pool": "2001:db8:1::/80" } ],
            "pd-pools": [
@@ -4135,6 +4149,7 @@ configuration:
    {
    "subnet6": [
        {
+           "id": 1,
            "subnet": "2001:db8:1::/48",
            "pools": [ { "pool": "2001:db8:1::/80" } ],
            "ddns-qualifying-suffix": "example.isc.org.",
@@ -4166,6 +4181,7 @@ different clients with different domain names:
    {
      "subnet6": [
        {
+           "id": 1,
            "subnet": "2001:db8:1::/48",
            "pools": [ { "pool": "2001:db8:1::/80" } ],
            "reservations": [
@@ -4294,7 +4310,9 @@ to them.
        }
        ],
        "subnet6": [
-       {   "pools": [ { "pool": "2001:db8:1::/64" } ],
+       {
+           "id": 1,
+           "pools": [ { "pool": "2001:db8:1::/64" } ],
            "subnet": "2001:db8:1::/48",
            "reservations": [
            {
@@ -4511,6 +4529,7 @@ An example configuration that disables reservations looks as follows:
       "Dhcp6": {
         "subnet6": [
           {
+            "id": 1,
             "pools": [
               {
                 "pool": "2001:db8:1::-2001:db8:1::100"
@@ -4542,6 +4561,7 @@ An example configuration using global reservations is shown below:
         ],
         "subnet6": [
           {
+            "id": 1,
             "pools": [
               {
                 "pool": "2001:db8:1::-2001:db8:1::100"
@@ -4658,7 +4678,8 @@ An example configuration that disables reservations looks as follows:
           {
             "reservations-global": false,
             "reservations-in-subnet": false,
-            "subnet": "2001:db8:1::/64"
+            "subnet": "2001:db8:1::/64",
+            "id": 1
           }
         ]
       }
@@ -4689,7 +4710,8 @@ An example configuration using global reservations is shown below:
                 "pool": "2001:db8:1::-2001:db8:1::100"
               }
             ],
-            "subnet": "2001:db8:1::/64"
+            "subnet": "2001:db8:1::/64",
+            "id": 1
           }
         ]
       }
@@ -4861,6 +4883,7 @@ within the subnet as follows:
         ],
         "subnet6": [
             {
+                "id": 1,
                 "subnet": "2001:db8:1::/64",
                 "reservations": [
                     {
@@ -4937,6 +4960,7 @@ following example:
             {
             "subnet6": [
                 {
+                    "id": 1,
                     "subnet": "2001:db8:1::/64",
                     "pools": [
                         {
@@ -4946,6 +4970,7 @@ following example:
                     ]
                 },
                 {
+                    "id": 2,
                     "subnet": "2001:db8:2::/64",
                     "pools": [
                         {
@@ -5023,6 +5048,7 @@ the same IPv6 address but different MAC addresses:
        "ip-reservations-unique": false,
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "reservations": [
                    {
@@ -5114,6 +5140,7 @@ have reservations) will get their default DNS server configured.
 
         "subnet6": [
             {
+                "id": 1,
                 "subnet": "2001:db8:1::/48",
                 "pools": [
                     {
@@ -5155,6 +5182,7 @@ their accounts up to date.
 
         "subnet6": [
             {
+                "id": 1,
                 "subnet": "2001:db8:1::/48",
                 "pools": [
                     {
@@ -5255,10 +5283,12 @@ introduced:
            # There are two subnets in this example.
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8::/48",
                    "pools": [ { "pool":  "2001:db8::1 - 2001:db8::ffff" } ]
                },
                {
+                   "id": 2,
                    "subnet": "3ffe:ffe::/64",
                    "pools": [ { "pool":  "3ffe:ffe::/64" } ]
                }
@@ -5274,6 +5304,7 @@ introduced:
        # This is a regular subnet. It is not part of any shared-network.
        "subnet6": [
            {
+               "id": 3,
                "subnet": "2001:db9::/48",
                "pools": [ { "pool":  "2001:db9::/64" } ],
                "relay": {
@@ -5326,6 +5357,7 @@ then override its value in the subnet scope. For example:
 
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8:1::/48",
                    "pools": [ { "pool":  "2001:db8:1::1 - 2001:db8:1::ffff" } ],
 
@@ -5342,6 +5374,7 @@ then override its value in the subnet scope. For example:
                    } ]
                },
                {
+                    "id": 2,
                     "subnet": "2001:db8:2::/48",
                     "pools": [ { "pool":  "2001:db8:2::1 - 2001:db8:2::ffff" } ],
 
@@ -5418,11 +5451,13 @@ of what **NOT** to do:
            "name": "office-floor-2",
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8::/64",
                    "pools": [ { "pool":  "2001:db8::1 - 2001:db8::ffff" } ],
                    "interface": "eth0"
                },
                {
+                    "id": 2,
                     "subnet": "3ffe:abcd::/64",
                     "pools": [ { "pool":  "3ffe:abcd::1 - 3ffe:abcd::ffff" } ],
                     ...
@@ -5454,10 +5489,12 @@ shown in the example below.
 
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8::/64",
                    "pools": [ { "pool":  "2001:db8::1 - 2001:db8::ffff" } ]
                },
                {
+                    "id": 2,
                     "subnet": "3ffe:abcd::/64",
                     "pools": [ { "pool":  "3ffe:abcd::1 - 3ffe:abcd::ffff" } ]
                }
@@ -5486,6 +5523,7 @@ of what **NOT** to do:
            "name": "kakapo",
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8::/64",
                    "relay": {
                        "ip-addresses": [ "2001:db8::1234" ]
@@ -5493,6 +5531,7 @@ of what **NOT** to do:
                    "pools": [ { "pool":  "2001:db8::1 - 2001:db8::ffff" } ]
                },
                {
+                   "id": 2,
                    "subnet": "3ffe:abcd::/64",
                    "pools": [ { "pool":  "3ffe:abcd::1 - 3ffe:abcd::ffff" } ],
                    "relay": {
@@ -5525,10 +5564,12 @@ shared network.
            },
            "subnet6": [
                {
+                   "id": 1,
                    "subnet": "2001:db8::/64",
                    "pools": [ { "pool":  "2001:db8::1 - 2001:db8::ffff" } ]
                },
                {
+                    "id": 2,
                     "subnet": "3ffe:abcd::/64",
                     "pools": [ { "pool":  "3ffe:abcd::1 - 3ffe:abcd::ffff" } ]
                }
@@ -5588,10 +5629,12 @@ following example:
                },
                "subnet6": [
                    {
+                       "id": 1,
                        "subnet": "2001:db8:1::/64",
                        "pools": [ { "pool": "2001:db8:1::20 - 2001:db8:1::ff" } ]
                    },
                    {
+                       "id": 2,
                        "subnet": "2001:db8:3::/64",
                        "pools": [ { "pool": "2001:db8:3::20 - 2001:db8:3::ff" } ],
                        "client-class": "b-devices"
@@ -5641,11 +5684,13 @@ on option 1234 values.
                },
                "subnet6": [
                    {
+                       "id": 1,
                        "subnet": "2001:db8:1::/64",
                        "pools": [ { "pool": "2001:db8:1::20 - 2001:db8:1::ff" } ],
                        "client-class": "a-devices"
                    },
                    {
+                       "id": 2,
                        "subnet": "2001:db8:3::/64",
                        "pools": [ { "pool": "2001:db8:3::20 - 2001:db8:3::ff" } ],
                        "client-class": "b-devices"
@@ -6112,6 +6157,7 @@ selects that subnet for a relay with address 3000::1.
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "2001:db8:1::/64",
                "pools": [
                     {
@@ -6151,6 +6197,7 @@ The following configuration can serve that situation:
    "Dhcp6": {
        "subnet6": [
            {
+               "id": 1,
                "subnet": "3000::/64",
                "pools": [
                    { "pool": "3000::2 - 3000::ffff" }
@@ -6161,6 +6208,7 @@ The following configuration can serve that situation:
                }
            },
            {
+               "id": 2,
                "subnet": "2001:db8:1::/64",
                "pools": [
                     {
@@ -7231,6 +7279,7 @@ option is actually needed. An example configuration looks as follows:
                    "lw4over6-bind-prefix-len": 56
                }
            } ],
+           "id": 1,
            "subnet": "2001:db8::/32",
 
            # This is a subnet-specific context. Any type of
index e08a744a6bce3c1f98d4d8b8af1f2d39957837e4..681276a24e0fce7a50e9ac379af0d2c22c769532 100644 (file)
@@ -271,6 +271,7 @@ Server 1:
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.250"
@@ -317,6 +318,7 @@ Server 2:
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.250"
@@ -702,6 +704,7 @@ only difference that ``this-server-name`` should be set to "server2" and
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.150",
@@ -1011,6 +1014,7 @@ library configuration has been removed from this example.
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.125",
@@ -1097,6 +1101,7 @@ The following is an example configuration of the primary server in a
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.250",
@@ -1174,6 +1179,7 @@ The following is an example configuration file for the primary server in a
        }],
 
        "subnet4": [{
+           "id": 1,
            "subnet": "192.0.3.0/24",
            "pools": [{
                "pool": "192.0.3.100 - 192.0.3.250"
index 67ff4efa1d65015f3675d3b6b7426e1b6e5aaba9..41dc34e08c3207d49986d0357c9e46798649ffe4 100644 (file)
@@ -262,6 +262,7 @@ of these subnets. For example:
         "Dhcp4": {
             "subnet4": [
                 {
+                    "id": 1,
                     "subnet": "192.0.2.0/24",
                     "pools": [
                         {
@@ -289,6 +290,7 @@ logging for an IPv6 subnet:
         "Dhcp6": {
             "subnet6": [
                 {
+                    "id": 1,
                     "subnet": "2001:db8:1::/64",
                     "pools": [
                         {
index b8e871170a1a01b15d21523dcf6cba8b09348c22..af31587d173de50875495a3f0c47f8b7ab7cce08 100644 (file)
@@ -303,6 +303,7 @@ The DDNS-Tuning Hook uses user-context to configure per subnet behavior. Example
 ::
 
     "subnet4": [{
+        "id": 1,
         "subnet": "192.0.2.0/24",
         "pools": [{
             "pool": "192.0.2.10 - 192.0.2.20"