Also, you can change the global variable in RULE_INIT to a static variable to preserve CMP:
when RULE_INIT {
Log debug messages to /var/log/ltm? (0=no, 1=yes)
set static::silo_access_debug 1
if {$static::silo_access_debug}{log local0. "Debug set to $static::silo_access_debug"}
}
when HTTP_REQUEST {
set app_pool_member [class match -value [HTTP::host] equals silo_access]
set app_pool [getfield $app_pool_member " " 1]
set app_member [getfield $app_pool_member " " 2]
if {$app_pool ne ""} {
if { $static::silo_access_debug } { log local0. "[IP::client_addr] wants [HTTP::host], sending to pool $app_pool member $app_member" }
pool $app_pool member $app_member
}
}
Aaron