Forum Discussion
Parveez_70209
Nimbostratus
Nov 08, 2013Syntax to Map Virtual-Server's Character with Data-Group which Contains Pool Name
Kindly have a look into the below Irule:
1.Last part of the Data-Group: dg_parveez_dynamic_pools contains a list of all dynamic pools:
2.Idea is to apply/create a single Irule into the future and a...
Kevin_Stewart
Employee
Nov 08, 2013The biggest problem here is that the pool command is expecting the name of a pool only, but your [class match -element ] command is returning the key (virtual server name) and value (pool name) of the data group search as a list.
So if you're data group looks like this:
apuat.leni2.com-vs-http := pool_apuat_leni2.com_http
apbuild.leni2.com-vs-http := pool_apbuild.leni2.com_http
apctdev.leni2.com-vs-http := pool_apctdev.leni2.com_http
** Notice that the virtual server names are all completely lower case since your class match is doing the same.
Then your class match should more appropriately look like this:
[class match [string tolower [virtual]] equals dg_parveez_dynamic_pools]
This will return the corresponding pool name to be fed into the pool command.
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