]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1546] changed ip addresses
authorWlodek Wencel <wlodek@isc.org>
Mon, 25 Jan 2021 12:15:44 +0000 (13:15 +0100)
committerWlodek Wencel <wlodek@isc.org>
Mon, 25 Jan 2021 12:54:29 +0000 (13:54 +0100)
doc/examples/kea4/vendor-specific.json
doc/examples/kea4/vivso.json

index cc3db000ca42811a369889a1c6fd147f109ea0cc..9796daa62d25fddcc5ce87f615be252a099911b9 100644 (file)
@@ -38,6 +38,9 @@
 // should encapsulate other suboptions, the "space" parameter should be the same
 // as included suboptions and "type" set to empty
                         "code": 43,
+// Using the "encapsulate" direction, Kea is told to include options from
+// the "339" namespace. We have defined several such options earlier.
+// This way, the sub-options are "glued" to this option 43.
                         "encapsulate": "339",
                         "name": "vendor-encapsulated-options",
                         "type": "empty"
@@ -60,7 +63,7 @@
                     },
                     {
                         "always-send": true,
-                        "data": "sdlp://11.11.11.11:18443",
+                        "data": "sdlp://192.0.2.11:18443",
                         "name": "dls",
                         "space": "339"
                     }
                 "interface": "ethX",
                 "pools": [
                     {
-                        "pool": "192.168.50.50-192.168.50.50"
+                        "pool": "192.0.2.50-192.0.2.50"
                     }
                 ],
-                "subnet": "192.168.50.0/24"
+                "subnet": "192.0.2.0/24"
             }
         ]
     }
index 0b2b1103572dae3f3132632c42c98e7ef1e24ea1..b5b1106b00518c2d03f2ed8198beb3e7315bd507 100644 (file)
@@ -37,7 +37,8 @@
                 "option-data": [
                     {
 // In "option-data" list we have to configure option 125 with data parameter equal
-// to vendor-id we are expecting
+// to vendor-id we are expecting, also it will tell Kea which vendor space
+// encapsulate in suboptions.
                         "data": "339",
                         "name": "vivso-suboptions"
                     },
@@ -54,7 +55,7 @@
                     },
                     {
                         "always-send": true,
-                        "data": "sdlp://11.11.11.11:18443",
+                        "data": "sdlp://192.0.2.11:18443",
                         "name": "dls",
                         "space": "vendor-339"
                     }
                 "interface": "ethX",
                 "pools": [
                     {
-                        "pool": "192.168.50.50-192.168.50.50"
+                        "pool": "192.0.2.50-192.0.2.50"
                     }
                 ],
-                "subnet": "192.168.50.0/24"
+                "subnet": "192.0.2.0/24"
             }
         ]
     }