Forum Discussion

atatps_250754's avatar
atatps_250754
Icon for Altocumulus rankAltocumulus
Mar 16, 2017

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...
  • atatps_250754's avatar
    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
         }
        }
        }