* `%{Client-Hardware-Address}` which binds the lease to the
mac address of the user's device.
- * `%{&Client-Identifier || &Client-Hardware-Address}`
+ * `%{Client-Identifier || Client-Hardware-Address}`
which binds the lease to either the custom identifier set by the
DHCP client, or if this is absent, the mac address of the user's
device.
For RADIUS the requested_address will almost always be `%{Framed-IP-Address}`.
For DHCPv4 the requested_address will almost always be
-`%{&Requested-IP-Address || &Client-IP-Address}`.
+`%{Requested-IP-Address || Client-IP-Address}`.
ippool_table = "fr_ippool"
lease_duration = 3600
offer_duration = 60
- pool_name = &control.IP-Pool.Name
- allocated_address_attr = &reply.Framed-IP-Address
+ pool_name = control.IP-Pool.Name
+ allocated_address_attr = reply.Framed-IP-Address
owner = "%{Calling-Station-ID}"
-# owner = "%{&Client-Identifier || &Client-Hardware-Address}"
+# owner = "%{Client-Identifier || Client-Hardware-Address}"
requested_address = "%{Framed-IP-Address}"
-# requested_address = "%{&Requested-IP-Address || &Client-IP-Address}"
- gateway = "%{&NAS-Identifier || &NAS-IP-Address}"
+# requested_address = "%{Requested-IP-Address || Client-IP-Address}"
+ gateway = "%{NAS-Identifier || NAS-IP-Address}"
$INCLUDE ${modconfdir}/sql/ippool/${dialect}/queries.conf
}
```
#
# pool_name: The attribute which contains the pool name.
#
- pool_name = &control.IP-Pool.Name
+ pool_name = control.IP-Pool.Name
#
# allocated_address_attr:: List and attribute where the allocated address is written to.
#
# e.g. `ipaddr`, `ipv4prefix,` `ipv6addr`, or `ipv6prefix`.
# ====
- allocated_address_attr = &reply.Framed-IP-Address
+ allocated_address_attr = reply.Framed-IP-Address
#
# owner:: Expansion which identifies the owner of the lease.
# * `%{Client-Hardware-Address}` which binds the lease to the
# mac address of the user's device.
#
- # * `%{&Client-Identifier || &Client-Hardware-Address}`
+ # * `%{Client-Identifier || Client-Hardware-Address}`
# which binds the lease to either the custom identifier set by the
# DHCP client, or if this is absent, the mac address of the user's
# device.
# owner = "%{Vendor-Specific.ADSL-Forum.Agent-Circuit-ID}.%{Calling-Station-Id}"
-# owner = "%{&Client-Identifier || &Client-Hardware-Address}"
+# owner = "%{Client-Identifier || Client-Hardware-Address}"
#
# requested_address:: The IP address being renewed or released.
# For RADIUS the requested_address will almost always be `%{Framed-IP-Address}`.
#
# For DHCPv4 the requested_address will almost always be
- # `%{&Requested-IP-Address || &Client-IP-Address}`.
+ # `%{Requested-IP-Address || Client-IP-Address}`.
#
requested_address = "%{Framed-IP-Address}"
-# requested_address = "%{&Requested-IP-Address || &Client-IP-Address}"
+# requested_address = "%{Requested-IP-Address || Client-IP-Address}"
#
# gateway:: The device controlling access to the network or relaying
# For DHCPv4, this device is recorded so that we can respond correctly
# to lease queries.
#
- gateway = "%{&NAS-Identifier || &NAS-IP-Address}"
+ gateway = "%{NAS-Identifier || NAS-IP-Address}"
# gateway = "%{Gateway-IP-Address}"
static const call_env_method_t sqlippool_alloc_method_env = {
FR_CALL_ENV_METHOD_OUT(ippool_alloc_call_env_t),
.env = (call_env_parser_t[]) {
- { FR_CALL_ENV_PARSE_OFFSET("pool_name", FR_TYPE_STRING, CALL_ENV_FLAG_REQUIRED | CALL_ENV_FLAG_CONCAT | CALL_ENV_FLAG_NULLABLE,
+ { FR_CALL_ENV_PARSE_OFFSET("pool_name", FR_TYPE_STRING, CALL_ENV_FLAG_REQUIRED | CALL_ENV_FLAG_CONCAT | CALL_ENV_FLAG_NULLABLE | CALL_ENV_FLAG_BARE_WORD_ATTRIBUTE,
ippool_alloc_call_env_t, pool_name, pool_name_tmpl),
- .pair.dflt = "&control.IP-Pool.Name", .pair.dflt_quote = T_BARE_WORD },
+ .pair.dflt = "control.IP-Pool.Name", .pair.dflt_quote = T_BARE_WORD },
{ FR_CALL_ENV_OFFSET("requested_address", FR_TYPE_VOID, CALL_ENV_FLAG_NULLABLE,
ippool_alloc_call_env_t, requested_address) },
{ FR_CALL_ENV_PARSE_OFFSET("allocated_address_attr", FR_TYPE_VOID,