and use ${pool_name} consistently everywhere.
Apparently we don't even use this module during the tests :(
#
lease_duration = 3600
+ #
+ # pool_name: The attribute in the `control` list which contains the pool name.
+ #
+ pool_name = IP-Pool.Name
+
#
# allocated_address_attr:: List and attribute where the allocated address is written to.
#
pool_check = "\
SELECT id \
FROM ${ippool_table} \
- WHERE pool_name='%{control.${IP-Pool.Name}}' \
+ WHERE pool_name='%{control.${pool_name}}' \
LIMIT 1"
#
FROM (\
SELECT id \
FROM ${ippool_table} \
- WHERE pool_name = '%{control.IP-Pool.Name}'\
+ WHERE pool_name = '%{control.${pool_name}}'\
) WHERE ROWNUM = 1"
#
pool_check = "\
SELECT id \
FROM ${ippool_table} \
- WHERE pool_name='%{control.IP-Pool.Name}' \
+ WHERE pool_name='%{control.${pool_name}}' \
LIMIT 1"
#