Forum Discussion
nitass
Mar 21, 2013Employee
Then in say all of my 100 other various other iRules I can say?
when HTTP_REQUEST {
if { ([HTTP::host] matches "www.siteabc.com")} {
pool /Common/pool_Ruby_$static::pool
}
}yes
And they will inherit the value given in the above "GlobalSwitch" iRule?
Am I understanding correctly?yes, you are right.
Do I even need to bind the global variable iRule to anything? This:
https://devcentral.f5.com/wiki/irules.RULE_INIT.ashx
leads me to believe that I just need to define it and not bind it to anything.yes, RULE_INIT event does not need to assign to virtual server.
iRules 101 - 03 - Variables by Colin
https://devcentral.f5.com/tech-tips/articles/irules-101-03-variables
v.10 - A new iRules Namespace by Colin
https://devcentral.f5.com/tech-tips/articles/v10-a-new-irules-namespace