ltm rule event XML CONTENT BASED ROUTINGΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



XML_CONTENT_BASED_ROUTING
       Triggered when a match is found in the XML profile.

DESCRIPTION
       Triggered when a match is found in the XML profile. There are three
       variables populated by the XML profile for this event:

       v10.2 - v11.1
	   Variable	   Purpose
	   $XML::count	   Shows how many queries matched.
	   $XML::queries   Contains an array of the query names that matched.
	   $XML::values    Holds the values of the elements that matched.

       v11.2+
	   Variable	   Purpose
	   $XML_count	   Shows how many queries matched.
	   $XML_queries    Contains an array of the query names that matched.
	   $XML_values	   Holds the values of the elements that matched.

Examples
	# v10.2 - v11.1
	when XML_CONTENT_BASED_ROUTING {
	  for {set i 0} { $i < $XML::count } {incr i} {
	    log local0. $XML::queries($i)
	    log local0. $XML::values($i)
	    if {($XML::queries($i) contains "FinanceObject")} {
	      pool finance_pool
	    }
	  }
	}

	# v11.2+
	when XML_CONTENT_BASED_ROUTING {
	  for {set i 0} { $i < $XML_count } {incr i} {
	    log local0. $XML_queries($i)
	    log local0. $XML_values($i)
	    if {($XML_queries($i) contains "FinanceObject")} {
	      pool finance_pool
	    }
	  }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-10.2.0 --First introduced the event.  @BIGIP-11.2.0 --Changed
       populated XML variables



BIG-IP				  2017-01-31			      iRule(1)