]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2838] change Int8ToText to lowercase in ARM
authorPiotrek Zadroga <piotrek@isc.org>
Mon, 8 May 2023 12:47:29 +0000 (14:47 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Mon, 8 May 2023 12:47:29 +0000 (14:47 +0200)
doc/sphinx/arm/hooks-ddns-tuning.rst
doc/sphinx/arm/hooks.rst

index 804cffd1de22ba059a6d9396f28d8a27c90856c4..15815bcdb1385c201b62380dd820bb007bc20ed5 100644 (file)
@@ -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",
index 8da712f05861444f0eb1960b29601e20de8be56e..e5e0df56df530ec15645c58128cb364ad6423ddb 100644 (file)
@@ -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" ],