]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3463] Fix JSON in ARM
authorThomas Markwalder <tmark@isc.org>
Mon, 10 Feb 2025 12:54:18 +0000 (07:54 -0500)
committerThomas Markwalder <tmark@isc.org>
Tue, 18 Feb 2025 18:54:19 +0000 (18:54 +0000)
modified:   hooks-lease-cmds.rst

doc/sphinx/arm/hooks-lease-cmds.rst

index e4046c9ab6b6417d0d32d65ded4624ea4815a9d0..0f878bbb5150b4d7cd437fc05d8e570aa18103ff 100644 (file)
@@ -1127,22 +1127,22 @@ client along with the domain-name sent by the server for each DCHPv4
 lease:
 
 .. code-block:: javascript
-
-    "hooks-libraries": [{
-        "library": "lib/kea/hooks/libdhcp_lease_cmds.so",
-        "parameters": {
-            "binding-variables": [{
-                "name": "opt-222",
-                "expression": "hexstring(option[222].hex, ':')",
-                "source": "query"
-            },{
-
-                "name": "domain-name",
-                "expression": "option[15].text",
-                "source": "response"
-            }]
-        }
-    }]
+    {
+        "hooks-libraries": [{
+            "library": "lib/kea/hooks/libdhcp_lease_cmds.so",
+            "parameters": {
+                "binding-variables": [{
+                    "name": "opt-222",
+                    "expression": "hexstring(option[222].hex, ':')",
+                    "source": "query"
+                },{
+                    "name": "domain-name",
+                    "expression": "option[15].text",
+                    "source": "response"
+                }]
+            }
+        }]
+    }
 
 The values are stored as name-value pairs in the ``ISC`` map in the lease's ``user-context``
 contents would look similar to the following:
@@ -1153,7 +1153,7 @@ contents would look similar to the following:
         "ISC": {
             "binding-variables": [{
                 "domain-name": "example.org",
-                "opt-222": "01:02:03:04",
+                "opt-222": "01:02:03:04"
             }
         ]}
     }