allocate-update should be allocate_update for dhcp_sqlippool
authorMatthew Newton <mcn4@leicester.ac.uk>
Tue, 18 Mar 2014 21:40:23 +0000 (21:40 +0000)
committerMatthew Newton <mcn4@leicester.ac.uk>
Tue, 18 Mar 2014 21:40:23 +0000 (21:40 +0000)
raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf
raddb/mods-config/sql/ippool-dhcp/oracle/queries.conf

index 3e8defc..416d598 100644 (file)
@@ -55,7 +55,7 @@ pool_check = "SELECT id FROM ${ippool_table} \
 
 
 ## This is the final IP Allocation query, which saves the allocated ip details
-allocate-update = "UPDATE ${ippool_table} \
+allocate_update = "UPDATE ${ippool_table} \
  SET nasipaddress = '%{NAS-IP-Address}', pool_key = '${pool_key}', \
  callingstationid = '%{Calling-Station-Id}', username = '%{User-Name}', \
  expiry_time = NOW() + INTERVAL ${lease_duration} SECOND \
index 398c975..ea6fb99 100644 (file)
@@ -36,7 +36,7 @@ allocate_find = "WITH POOLS AS (SELECT * FROM ${ippool_table} WHERE POOL_NAME =
 #pool_check = "SELECT ID FROM (SELECT ID FROM ${ippool_table} WHERE POOL_NAME = '%{control:Pool-Name}') WHERE ROWNUM = 1"
   
  
-## This query marks the IP address handed out by "allocate-find" as used
+## This query marks the IP address handed out by "allocate_find" as used
 ## for the period of "lease_duration" after which time it may be reused.
 allocate_update = "UPDATE ${ippool_table} SET NASIPADDRESS = '%{NAS-IP-Address}', POOL_KEY = '${pool_key}', CALLINGSTATIONID = '%{Calling-Station-Id}', USERNAME = '%{SQL-User-Name}', EXPIRY_TIME = CURRENT_TIMESTAMP + INTERVAL '${lease_duration}' SECOND(1) WHERE FRAMEDIPADDRESS = '%I'"