Forum Discussion

brad_scherer_11's avatar
brad_scherer_11
Icon for Nimbostratus rankNimbostratus
Jun 23, 2009

Error in VDI Deployment guide iRule

In this guide:

 

www.f5.com/pdf/deployment-guides/vmware-vdi-dg.pdf

 

 

The iRule on page 8 throws the attached error when I try to save it. I am running v 9.4.5 hotfix 2.

 

 

Could someone please validate this rule and or provide a working version of it.

2 Replies

  • Hi Brad,

    I think it's an issue with line wrapping in the PDF. Can you try this:

     
     when HTTP_REQUEST { 
        if { [HTTP::cookie exists "JSESSIONID"] } { 
            log local0. "Client [IP::client_addr] sent cookie [HTTP::cookie "JSESSIONID"]" 
           set jsess_id [string range [HTTP::cookie "JSESSIONID"] 0 31] 
           persist uie $jsess_id 
            log local0. "uie persist $jsess_id" 
        } else { 
            log local0. "no JSESSIONID cookie, looking for tunnel ID" 
           set jsess [findstr [HTTP::uri] "tunnel?" 7] 
           if { $jsess != "" } { 
               log local0. "uie persist for tunnel $jsess" 
              persist uie $jsess 
           } 
        } 
     } 
     when HTTP_RESPONSE { 
        if { [HTTP::cookie exists "JSESSIONID"] } { 
           set jsess_cookie [HTTP::cookie "JSESSIONID"] 
           persist add uie [HTTP::cookie "JSESSIONID"] 
            log local0. "persist add uie [HTTP::cookie "JSESSIONID"] server: [IP::server_addr] client: [IP::client_addr]" 
        } 
     } 
      when LB_SELECTED { 
      log local0. "Member [LB::server addr]" 
      } 
     

    Aaron