Forum Discussion
tiwang
Mar 07, 2014Nimbostratus
hi patrik yes but if I assign a pool trough a irule - is the status then reflected to the GUI? I had a similar setup with another vs where we assign the pool through a irule
when HTTP_REQUEST { Log debug messages to /var/log/ltm? 1=yes, 0=no. set host_debug 0
Need to force the host header replacement and HTTP:: commands into the clientside context as the HTTP_REQUEST_SEND event is in the serverside context
if {$host_debug}{log local0. "[HTTP::host]: [HTTP::method] request to [HTTP::host][HTTP::uri]"}
Look up the selected server name in the datagroup to get the right pool
set pool_name_value [class match -value [HTTP::host] equals /dk_dmz/DK_AE_IP_pools_dg]
if {$host_debug}{log local0. "[IP::client_addr]:[TCP::client_port]: Looked up [HTTP::host], found: $pool_name_value."}
Check if the lookup returned a value
if {$pool_name_value ne ""}{
Replace pool
pool $pool_name_value
if {$host_debug}{log local0. "[HTTP::host]: Replaced default pool with $pool_name_value."}
}
}
but this is not refelcted here ?