#
# ```
# # Add a cache entry
- # update {
- # &control.Cache-TTL := 3600 # 1h
- # }
+ # &control.Cache-TTL := 1h
# cache.store
# if (updated) {
# ..keys stored
# }
#
# # Change the entries TTL
- # update {
- # &control.Cache-TTL := 1600 # 30m
- # }
+ # &control.Cache-TTL := 30m
# cache.ttl
# if (updated) {
# ..ttl changed
#
# [source,unlang]
# ----
-# update control {
-# &Tmp-String-0 := '$.my.json.payload[1]'
-# }
-# update reply {
-# &Reply-Message := "Validation of %{control.Tmp-String-0} is %{jpathvalidate:$.my.json.payload[1]}"
-# }
+# &control.Tmp-String-0 := '$.my.json.payload[1]'
+# &reply.Reply-Message := "Validation of %{control.Tmp-String-0} is %{jpathvalidate:$.my.json.payload[1]}"
# ----
#
# .Output
#
# [source,unlang]
# ----
-# update control {
-# &Tmp-String-0 := "caipirinha/gelada"
-# }
-# update reply {
-# &Reply-Message := "The string %{control.Tmp-String-0} should be %{jsonquote:%{control.Tmp-String-0}} to be a valid JSON string."
-# }
+# &control.Tmp-String-0 := "caipirinha/gelada"
+# &reply.Reply-Message := "The string %{control.Tmp-String-0} should be %{jsonquote:%{control.Tmp-String-0}} to be a valid JSON string."
# ----
#
# .Output
# ----
# ldap
# if ((ok || updated) && &User-Password) {
- # update {
- # &control.Auth-Type := ldap
- # }
+ # &control.Auth-Type := ldap
# }
# ----
# ====
#
type = Status-Server
- #
- # update request { ... }::
#
# `Status-Server` packet contents are fixed and cannot
# be edited.
#
- # For other packet types, you can create the contents
- # here. The section MUST be "update request", and
+ # For other packet types, you can set the contents
+ # here. The section MUST be set over "&request.<attribute> = value", and
# anything else will cause a parse error.
#
# We RECOMMEND that you use packet contents which
# created when a connection is opened, and are not
# changeable after that.
#
-# update request {
-# &User-Name := "test-user"
-# &User-Password := "this-is-not-a-real-password"
-# &NAS-Identifier := "Status check. Are you alive?"
-# &Event-Timestamp = 0
-# }
+# &request.User-Name := "test-user"
+# &request.User-Password := "this-is-not-a-real-password"
+# &request.NAS-Identifier := "Status check. Are you alive?"
+# &request.Event-Timestamp = 0
}
# it will be `redundant_sql`. You can then use this expansion
# just like any other:
#
-# update reply {
-# Filter-Id := "%{redundant_sql: ... }"
-# }
+# &reply.Filter-Id := "%{redundant_sql: ... }"
#
# In this example, the expansion is done via module `sql1`, and if
# that expansion fails, using module `sql2`.
# Multi-value attributes are mapped to perl arrayrefs.
#
-# update request {
-# Filter-Id := 'foo'
-# Filter-Id += 'bar'
+# &request.Filter-Id := 'foo'
+# &request += {
+# &Filter-Id = 'bar'
# }
#
# This results to the following entry in %RAD_REQUEST: