Pirlo
Mar 29, 2010Nimbostratus
Syntax and Effeciency check
Trying to verify syntax and efficiency for the following rule.
Essentially this is a HTTP vip that needs XFF redirection to a dummy pool if the address matches the data group list.
In the below Irule - Is syntax correct? Is their a more effecient way to process?
when HTTP_REQUEST {
check if client_addr = any in the class
if {[matchclass [HTTP::header "X-Forwarded-For"] equals $::pre_test_address_list]} {
use pool dummypool
} else {
use pool prodpool
}
}
And at the end of the rule do I need the "else use pool prodpool" statement? Or can I leave that out and once the Irule inspection is complete will the LTM proceed with the default pool that the VIP lb's to?
when HTTP_REQUEST {
check if client_addr = any in the class
if {[matchclass [HTTP::header "X-Forwarded-For"] equals $::pre_test_address_list]} {
use pool dummypool
}