Forum Discussion
atatps_250754
Mar 16, 2017Altocumulus
iRule breaking iApp Template?
Gents,
Armed with this how-to article on DevCentral, I built an iApp template to automate app creation. However, the template only deploys properly when the iRule section is omitted otherwise it wi...
- Mar 24, 2017
Was able to get help from Support. The solution, contrary to the article, was to remove the backslashes so it should be:
tmsh::create { ltm rule IAPPTEST-Homepage-http when HTTP_REQUEST { if { [string tolower [HTTP::path]] starts_with "/homepage"}{ pool IAPPTEST-ebiz-http member 10.1.10.101 } else { pool IAPPTEST-ebiz-http } } }
As opposed to:
tmsh::create { ltm rule IAPPTEST-Homepage-http when HTTP_REQUEST { if { \[string tolower \[HTTP::path\]\] starts_with \"/homepage/\" } { pool IAPPTEST-ebiz-http member 10.1.10.101 } else { pool IAPPTEST-ebiz-http } } }
atatps_250754
Mar 24, 2017Altocumulus
Was able to get help from Support. The solution, contrary to the article, was to remove the backslashes so it should be:
tmsh::create {
ltm rule IAPPTEST-Homepage-http
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/homepage"}{
pool IAPPTEST-ebiz-http member 10.1.10.101
} else {
pool IAPPTEST-ebiz-http
}
}
}
As opposed to:
tmsh::create {
ltm rule IAPPTEST-Homepage-http
when HTTP_REQUEST {
if { \[string tolower \[HTTP::path\]\] starts_with \"/homepage/\" } {
pool IAPPTEST-ebiz-http member 10.1.10.101
} else {
pool IAPPTEST-ebiz-http
}
}
}
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