Forum Discussion
Brian_69413
Nimbostratus
Nov 27, 2007logic based on Virtual Server
I have an iRule that is applied to multiple Virtual Servers but should take different actions depending on which one triggers the rule. Is there a way to to perform logic based on Virtual Server?
Thanks!
- JRahm
Admin
You could use a switch:switch [virtual name] { "vip1" { do stuff here .... } "vip2" - "vip3" { do different stuff here .... }" default { do default stuff here .... } }
- Brian_69413
Nimbostratus
Perfect, so [virtual name] contains the name of the Virtual Server being used? - JRahm
Admin
Yep...Here's the wiki page: Click here - Brian_69413
Nimbostratus
Thanks!
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