-range_attr:: List and attribute where the `Pool-Range` ID (if set) is written to.
+range_attr:: List and attribute where the `IP-Pool.Range` ID (if set) is written to.
-The idea of the `Pool-Range` is that it provides a key into other datastores
+The idea of the `IP-Pool.Range` is that it provides a key into other datastores
or caches, which store the additional options associated with the range an
IP address belongs to.
requested_address = "%{%{Requested-IP-Address}:-%{DHCP-Client-IP-Address}}"
# ipv4_integer = yes
allocated_address_attr = &reply.DHCP-Your-IP-Address
- range_attr = &reply.Pool-Range
+ range_attr = &reply.IP-Pool.Range
expiry_attr = &reply.DHCP-IP-Address-Lease-Time
copy_on_update = yes
redis {
allocated_address_attr = &reply.DHCP-Your-IP-Address
#
- # range_attr:: List and attribute where the `Pool-Range` ID (if set) is written to.
+ # range_attr:: List and attribute where the `IP-Pool.Range` ID (if set) is written to.
#
- # The idea of the `Pool-Range` is that it provides a key into other datastores
+ # The idea of the `IP-Pool.Range` is that it provides a key into other datastores
# or caches, which store the additional options associated with the range an
# IP address belongs to.
#
# There may be multiple ranges of IP address contained within any given pool,
# which is why this is provided in addition to the pool name.
#
- range_attr = &reply.Pool-Range
+ range_attr = &reply.IP-Pool.Range
#
# expiry_attr:: If set - the list and attribute to write the remaining lease time to.
{ FR_CONF_OFFSET("allocated_address_attr", FR_TYPE_TMPL | FR_TYPE_ATTRIBUTE | FR_TYPE_REQUIRED, rlm_redis_ippool_t, allocated_address_attr), .dflt = "&reply.DHCP-Your-IP-Address", .quote = T_BARE_WORD },
{ FR_CONF_DEPRECATED("reply_attr", FR_TYPE_TMPL | FR_TYPE_ATTRIBUTE | FR_TYPE_REQUIRED, rlm_redis_ippool_t, NULL) },
- { FR_CONF_OFFSET("range_attr", FR_TYPE_TMPL | FR_TYPE_ATTRIBUTE | FR_TYPE_REQUIRED, rlm_redis_ippool_t, range_attr), .dflt = "&reply.Pool-Range", .quote = T_BARE_WORD },
+ { FR_CONF_OFFSET("range_attr", FR_TYPE_TMPL | FR_TYPE_ATTRIBUTE | FR_TYPE_REQUIRED, rlm_redis_ippool_t, range_attr), .dflt = "&reply.IP-Pool.Range", .quote = T_BARE_WORD },
{ FR_CONF_OFFSET("expiry_attr", FR_TYPE_TMPL | FR_TYPE_ATTRIBUTE, rlm_redis_ippool_t, expiry_attr) },
{ FR_CONF_OFFSET("ipv4_integer", FR_TYPE_BOOL, rlm_redis_ippool_t, ipv4_integer) },
test_fail
}
-if (&reply.Pool-Range == '192.168.0.0') {
+if (&reply.IP-Pool.Range == '192.168.0.0') {
test_pass
} else {
test_fail
}
update {
- &request.Pool-Range := &reply.Pool-Range
+ &request.IP-Pool.Range := &reply.IP-Pool.Range
&request.Framed-IP-Address := &reply.Framed-IP-Address
&request.Session-Timeout := &reply.Session-Timeout # We should get the same lease time
&reply !* ANY
#
# Check the ranges are the same
#
-if (&request.Pool-Range == &reply.Pool-Range) {
+if (&request.IP-Pool.Range == &reply.IP-Pool.Range) {
test_pass
} else {
test_fail
requested_address = &Framed-IP-Address
allocated_address_attr = &reply.Framed-IP-address
- range_attr = &reply.Pool-Range
+ range_attr = &reply.IP-Pool.Range
expiry_attr = &reply.Session-Timeout
# This messes with the tests if enabled
}
# 13. and that the range attribute was set
-if (&reply.Pool-Range && (&reply.Pool-Range == '192.168.0.0')) {
+if (&reply.IP-Pool.Range && (&reply.IP-Pool.Range == '192.168.0.0')) {
test_pass
} else {
test_fail