F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

siva_85221's avatar
siva_85221
Icon for Nimbostratus rankNimbostratus
Aug 12, 2008

Equivalent iRule in 4.x....

This iRule is for 9.x.

 

 

Can someone let me know the equivalent iRule in 4.x?

 

 

b rule http_inspect_uri_routehash_persist_rl

 

{ when HTTP_REQUEST

 

{

 

if { [set routehashvalue [findstr [HTTP::uri] "routehash=" 10 "&" ] ] }

 

{

 

persist uie $routehashvalue

 

log local0. "URI= $routehashvalue"

 

}

 

}

 

}

 

 

Thanks

1 Reply

  • IIRC, there is no equivalent.

    You could get close to the findstr by doing a simple contains check:

    if (http_uri contains "routehash") {

    and you could even extract the parameter value, but you can't manipulate the persistence table in v4 iRules, so it would all be in vain.