Forum Discussion
Greg_Labelle
Mar 08, 2016Nimbostratus
I believe your problem is actually the "switch" command. That command does not accept wildcards for matching, you'll need to use a variable to pull the node number out of the uri before running your switch.
For example:
set node [substr [HTTP::uri] 0 "/"]
switch node {
"node1" {
pool MyPool member Member1 80
}
"node2" {
pool MyPool member Member2 80
}
default {
pool MyPool
}
}