Forum Discussion
Using same iRule for different VIPs with the help of dynamic Pools
Hi All, I am using the following iRule for one of my VIP. But I need to use the same iRule for different VIPs. Is there way to give the pool name dynamically instead of me writing different iRules with different pool names for each VIP?
when HTTP_REQUEST { if { [HTTP::uri] equals "/" }{ HTTP::uri "http://[HTTP::host]/abcxyz" } else { pool pool_name } }
- Vijay_ECirrus
You can define variables for the pool name and use it. However, I would recommend creating different iRule as any change in one iRule could adversely affect the other. Also, more specific the iRule, lesser the resource consumption, especially, if your F5 is handling traffic in hundreds of thousands of connections.
Recent Discussions
Related Content
* 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