From: Piotrek Zadroga Date: Mon, 8 May 2023 12:47:29 +0000 (+0200) Subject: [#2838] change Int8ToText to lowercase in ARM X-Git-Tag: Kea-2.3.8~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb0e6d73b1197eee6908ab72faab16ec75b02ef;p=thirdparty%2Fkea.git [#2838] change Int8ToText to lowercase in ARM --- diff --git a/doc/sphinx/arm/hooks-ddns-tuning.rst b/doc/sphinx/arm/hooks-ddns-tuning.rst index 804cffd1de..15815bcdb1 100644 --- a/doc/sphinx/arm/hooks-ddns-tuning.rst +++ b/doc/sphinx/arm/hooks-ddns-tuning.rst @@ -72,10 +72,10 @@ global expression for that subnet. An example subnet expression is shown below: // This is a subnet-specific user context. "user-context": { "ddns-tuning": { - "hostname-expr": "'guest-'+Int8ToText(substring(pkt4.yiaddr, 0,1))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 1,2))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 2,3))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 3,4))" + "hostname-expr": "'guest-'+int8totext(substring(pkt4.yiaddr, 0,1))+'-' \ + +int8totext(substring(pkt4.yiaddr, 1,2))+'-' \ + +int8totext(substring(pkt4.yiaddr, 2,3))+'-' \ + +int8totext(substring(pkt4.yiaddr, 3,4))" }, "last-modified": "2017-09-04 13:32", "description": "you can put anything you like here", diff --git a/doc/sphinx/arm/hooks.rst b/doc/sphinx/arm/hooks.rst index 8da712f058..e5e0df56df 100644 --- a/doc/sphinx/arm/hooks.rst +++ b/doc/sphinx/arm/hooks.rst @@ -300,7 +300,7 @@ without the need to restart the server. The DDNS-Tuning Hook uses user-context to configure per subnet behavior. Example: -:: +.. code-block:: json "subnet4": [{ "subnet": "192.0.2.0/24", @@ -309,10 +309,10 @@ The DDNS-Tuning Hook uses user-context to configure per subnet behavior. Example } ], "user-context": { "ddns-tuning": { - "hostname-expr": "'guest-'+Int8ToText(substring(pkt4.yiaddr, 0,1))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 1,2))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 2,3))+'-' \ - +Int8ToText(substring(pkt4.yiaddr, 3,4))" + "hostname-expr": "'guest-'+int8totext(substring(pkt4.yiaddr, 0,1))+'-' \ + +int8totext(substring(pkt4.yiaddr, 1,2))+'-' \ + +int8totext(substring(pkt4.yiaddr, 2,3))+'-' \ + +int8totext(substring(pkt4.yiaddr, 3,4))" }, "last-modified": "2017-09-04 13:32", "phones": [ "x1234", "x2345" ],