Add config options for configurable logging
authorpnixon <pnixon>
Tue, 3 Oct 2006 13:04:13 +0000 (13:04 +0000)
committerpnixon <pnixon>
Tue, 3 Oct 2006 13:04:13 +0000 (13:04 +0000)
raddb/sqlippool.conf

index c39ac71..425dd91 100644 (file)
@@ -23,6 +23,18 @@ sqlippool {
  pool-key = "%{NAS-Port}"
  # pool-key = "%{Calling-Station-Id}"
 
+ # Logging configuration.
+ sqlippool_log_exists = "Existing IP: %{reply:Framed-IP-Address} \
+  (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
+
+ sqlippool_log_success = "Allocating IP: %{reply:Framed-IP-Address} from %{check:Pool-Name} \
+  (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
+
+ sqlippool_log_failed = "IP Allocation FAILED from %{check:Pool-Name} \
+  (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
+
+ sqlippool_log_nopool = "No Pool-Name defined \
+  (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
 
  #
  # This series of queries allocates an IP address