Hi phipse,
you iRule looks absolutely valid^^
For testing purposes you may try to the iRules below and then take a look to your logfiles...
Test1: Forwarding every request to pool_group1
when HTTP_REQUEST {
log local0.debug "iRule executed..."
pool pool_group1
}
Test2: Same as your iRule with added logging
when HTTP_REQUEST {
log local0.debug "Debug: iRule executed..."
switch -glob -- [HTTP::uri] {
"/diagnostics/*" {
log local0.debug "Debug: Hit the /diagnostics path."
persist source_addr 255.255.255.255 1800
pool pool_group2
}
default {
log local0.debug "Debug: Hit the default path"
pool pool_group1
}
}
}
Cheers, Kai