Forum Discussion
The_Bhattman
Mar 17, 2008Nimbostratus
The class object can be defined in the following
class dg_poola {
"/abc"
"/xyz"
}
class dg_poolb {
"/prq"
"/def"
}
The irule can be written so it uses the datagroup along with 'string tolower' argument.
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] contains $::dg_poola] } {
pool poola
} else if { [matchclass [string tolower [HTTP::uri]] contains $::dg_poolb] } {
pool poolb
}
}
}
/cb