summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2023-05-08 14:47:29 +0200
committerPiotrek Zadroga <piotrek@isc.org>2023-05-08 14:47:29 +0200
commitefb0e6d73b1197eee6908ab72faab16ec75b02ef (patch)
tree9386a39396f8296dedbd41eb7952a0061da6ad05 /doc
parent[#2536] addressed review comments (diff)
downloadkea-efb0e6d73b1197eee6908ab72faab16ec75b02ef.tar.xz
kea-efb0e6d73b1197eee6908ab72faab16ec75b02ef.zip
[#2838] change Int8ToText to lowercase in ARM
Diffstat (limited to 'doc')
-rw-r--r--doc/sphinx/arm/hooks-ddns-tuning.rst8
-rw-r--r--doc/sphinx/arm/hooks.rst10
2 files changed, 9 insertions, 9 deletions
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" ],