Forum Discussion
Ian_105608
Nimbostratus
Feb 03, 2010Customer Defined Functions
Gday,
We are using HTTP::path to do HTTP routing decisions. We have some fairly long irules that have many applications on a virtual server pointing to several different servers.
...
hoolio
Cirrostratus
Feb 03, 2010Hi Ian,
There has been discussion here about supporting user defined functions. Last I read they're still under consideration.
However, for your scenario, I think using a datagroup mapping the host, paths and pool would be more efficient (and possible in current versions). If you're on v10, you can use the new class command (Click here). For 9.x, you can use the findclass or TCL list commands to look up the corresponding pool.
For examples, you can check the wiki pages or search the iRules forums for findclass, "http::host", class, etc.
Another option would be to use the ProxyPassV9 or ProxyPassV10 iRules to do this:
iRule codeshare (Click here)
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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