rnorberg
Feb 11, 2012Nimbostratus
class match confusion...
im having an issue getting my hands around this irule:
set pooluri ""
set pooluri [class match -name $originaluri starts_with pool-list]
if {$pooluri eq ""} {
set pooluri "default"
}
set pooluri2 [class match -value pooluri equals pool-list]
set dest_pool [getfield variable_uri_2 "," 1]
im not understanding what the -name and -value differences are. is this rule saying if the $originaluri variable starts with an entry in the pool-list class, set the $pooluri variable to 'default' .. and if its not in the class list do nothing?
then im really confused on the class match -value statement. what is the difference between -name and -value? ive never used class match in this way, and help decoding this would be much appreciated!