Forum Discussion
irchuvieco_1345
Nimbostratus
Apr 25, 2018Cloned pool isn't working correctly
Hi guys
We are using clone pool sentence using the iRule
when HTTP_REQUEST {
pool "pro-http-sur"
if { [HTTP::host] contains "www.bbb.es" } {
if { ( ([HTTP::method] equals "POST") && ([HTTP::uri] starts_with "/boa/index.jsf" ))
||([HTTP::uri] starts_with "/boa/hotelResult.jsf") } {
clone pool pro-clone-sur
}
} elseif { [HTTP::host] contains "www.extranetccc.es"} {
pool "pro-http-sur-extranet"
}
}
`
Our intention is to clone traffic based on the request HTTP-URI and HTTP method as you can see in the iRule.
The cloned destination interface has been enabled to listen in promiscuous mode but the traffic cloned received does not match with the irule condition.
For example we have checked that there are requests cloned based on the following uris:
`/boa/resources/prima.jsf
/boa/resources/img.png
/boa/resources/css.png
In addition some requests are been lost even fulfilling based on the irule condition
any idea?
3 Replies
Sort By
- jaikumar_f5
Noctilucent
The logic is looking good, but would you mind trying this,
when HTTP_REQUEST { if { [HTTP::host] contains "www.bbb.es" } { if { ( ([HTTP::method] equals "POST") && ([HTTP::uri] starts_with "/boa/index.jsf" )) ||([HTTP::uri] starts_with "/boa/hotelResult.jsf") } { pool pro-http-sur clone pool pro-clone-sur log local0. "Host matched if-if condition - CLONING, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]" } else { pool pro-http-sur log local0. "Host matched if-else condition - NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]" } } elseif { [HTTP::host] contains "www.extranetccc.es"} { pool pro-http-sur-extranet log local0. "Host matched elseif condition - Extranet, NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]" }
}
- irchuvieco_1345
Nimbostratus
By other hand we have enabled oneconnect profile and dont know if it can be related with the issue.
- Rbman
Nimbostratus
Hi,
Have you manage to wotk it out?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects