Forum Discussion

mihirec1983_229's avatar
mihirec1983_229
Icon for Nimbostratus rankNimbostratus
Oct 15, 2015

Hi I want to validate weather am i using right i-rule for XML redirect or not?

Hi I want to validate weather am i using right i-rule for XML redirect or not? I have implemented below i -rule in production. How can i validate is it working fine or not? any suggestion? i disable log locl0 is that work ?

 

when HTTP_REQUEST { if { !( [HTTP::uri] contains "api/rest" )} { persist source_addr 255.255.255.255 3600 } } when XML_CONTENT_BASED_ROUTING { log local0. "XML Detected" for {set i 0} { $i < $XML::count } {incr i} { log local0. $XML::queries($i) log local0. $XML::values($i) if {($XML::queries($i) contains "dial-in-number")} { persist uni $XML::values($i) } } }

 

1 Reply

  • Are you saying the above iRule doesn't work? You're not specifically performing any redirects. You're just forcing persistence to different tables (source_address and uni). Is that intended?