Forum Discussion
Yugandhar
Nimbostratus
Jul 18, 2018Reason for iRule Execution Error
Hi
Multiple URLs are pointing to the same Virtual Server IP but persistence of 600 secs is needed only for a few of them.
Configured the below iRule and applied to the VS but got an Execution er...
Samir_Jha_52506
Noctilucent
Jul 21, 2018Will go bit different way to solve issue. It will be easy to add more url in datagroup
class
. Lets try and update if working.
class host_url {
access.testxyz45.com
abc.testxyz45.com
def.testxyz45.com
mail.testxyz45.com
}
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::host]] equals host_url] } {
persist source_addr 255.255.255.255 600
persist source_addr [] [] -- DevCentral Syntax
Link : https://devcentral.f5.com/wiki/iRules.persist.ashx
}
}
I will request user to click iRule which working and solving issue. So that other can be refer.
Yugandhar
Nimbostratus
Jul 21, 2018Thank you .. I thought 'host_url' will be replaced with the values specified in the Data Group...So we can't refer a Data Group in the Switch Statement :)
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