Forum Discussion
Kai_Wilke
Feb 15, 2016MVP
Hi Raj,
The additional pool is just used as a container to make the administration easier. But you could also hardcode the new nodes into the iRule using this syntax...
when RULE_INIT {
set static::new_app_nodes "1.1.1.1 443 2.2.2.2 443 3.3.3.3 443"
}
when HTTP_REQUEST_SEND {
if { $static::new_app_nodes contains "[LB::server addr] [LB::server port]" } then {
log -noname local0.debug "Match! [members -list $static::new_app_pool] contains [LB::server addr] [LB::server port]"
clientside {
Rewrite the request as needed...
}
} else {
log -noname local0.debug "Don't match! [members -list $static::new_app_pool] contains [LB::server addr] [LB::server port]"
}
}
Note: Include possible route domain suffixes as needed^^
Cheers, Kai