Forum Discussion
m_aremia
Nov 18, 2021Nimbostratus
There is no real pattern to the path and pool name and being so your suggestion would to use a datagroup, a class match condition to send the traffic to the pool with the following?
HTTP:header insert <value> <name>
- jaikumar_f5Nov 18, 2021MVP
Create your datagroup with URI as record and pool name as value.
then in your irule, use something like
#take http uri set httpuri [string tolower [HTTP::uri]] #Compare against Datagroup and pull out the pool name set poolname [class match -value $httpuri starts_with DATAGROUP_NAME] #To insert the poolname as header HTTP::header insert "X-Pool" $poolname #To send the traffic to the respective pool pool $poolname
Hope you got the point !!!