Xml tag rules – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 264
![background image](/manuals/361724/264/background.png)
248
Brocade Virtual ADX Server Load Balancing Guide
53-1003247-01
Layer 7 content switching
5
XML tag rules
XML tag rules cause the Brocade Virtual ADX to make a load balancing decision based on the
contents of an XML tag in an incoming packet. Rules for up to 200 different XML tags can be
specified in an Layer 7 content switching configuration. In a given policy, you can include rules for
up to 5 XML tags.
lists the XML tag rules for Layer 7 content switching.
Header
Equals
Matches if the
contents of the
specified HTTP
header field are
equal to the
specified value.
[no] csw-rule rule-name
header header-name
equals value
csw-rule r1 header "host" equals
"www.example4.com"
Header
Search
Matches if the
specified HTTP
header field
contains any one
of up to five
specified values.
This type of rule
can be used with
the persist action.
[no] csw-rule rule-name
header header-name
search value
csw-rule r1 header "cookie" search
"ServerId1"
csw-rule r1 header "cookie" search
"ServerId2"
TABLE 25
XML tag rules for Layer 7 content switching
XML tag rule
name
Description
Syntax
Example
XML Tag
Exists
Matches if the
specified XML
tag exists in the
incoming packet.
[no] csw-rule rule-name xml-tag
tag-name exists
csw-rule r1 xml-tag "name"
exists
XML Tag
Prefix
Matches if the
value in the
specified XML
tag begins with
the specified
prefix.
[no] csw-rule rule-name xml-tag
tag-name prefix value
csw-rule r1 xml-tag "name"
prefix "ge"
XML Tag
Suffix
Matches if the
value in the
specified XML
tag ends with the
specified suffix.
[no] csw-rule rule-name xml-tag
tag-name suffix value
csw-rule r1 xml-tag "name"
suffix "ge"
XML Tag
Pattern
Matches if the
specified pattern
exists anywhere
within the
specified XML
tag.
[no] csw-rule rule-name xml-tag
tag-name pattern value
csw-rule r1 xml-tag "name"
pattern "org"
TABLE 24
HTTP header rules for Layer 7 content switching (Continued)
HTTP header
rule name
Description
Syntax
Example