Forum Discussion
Help on irule for V11
Iam migrating a service from v9 to v11, while migrating I getting a error on irule. I suspect some syntax mismatch when I copy a irule from v9 to v11. Kindly advice
below is the irule what I used. I have used xxxx to hide information.
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] contains "/advantage" } { pool XXXX_http-pool } elseif {[matchclass [string tolower [HTTP::uri]] starts_with $::XXXXX_uri] } { pool qa-pool } elseif { [HTTP::host] equals "XXXXXX.com" } { HTTP::redirect "" } else { pool XXXXX1_http-pool } }
5 Replies
- Arie
Altostratus
was deprecated some versions ago. Usematchclass
instead.class matchIn addition, instead of
you should now use$::abc
.abc - Arie
Altostratus
Documentation: https://devcentral.f5.com/wiki/iRules.class.ashx
- Rajendran2002_1
Nimbostratus
Thank you for your response, it tried, but not working do we need to use like this "abc" instead of abc.
any other changes required on irule?
- Rajendran2002_1
Nimbostratus
Thank you, this is working
- Arie
Altostratus
Would you mind marking the entry as the answer?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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