From: Thomas Markwalder Date: Mon, 10 Feb 2025 12:54:18 +0000 (-0500) Subject: [#3463] Fix JSON in ARM X-Git-Tag: Kea-2.7.7~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cc3d240cde2e2789ccf56af9503bdb1ee2f1d21;p=thirdparty%2Fkea.git [#3463] Fix JSON in ARM modified: hooks-lease-cmds.rst --- diff --git a/doc/sphinx/arm/hooks-lease-cmds.rst b/doc/sphinx/arm/hooks-lease-cmds.rst index e4046c9ab6..0f878bbb51 100644 --- a/doc/sphinx/arm/hooks-lease-cmds.rst +++ b/doc/sphinx/arm/hooks-lease-cmds.rst @@ -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" } ]} }