Forum Discussion
LillyM_9417
Dec 14, 2011Altostratus
switch & swith -globe question
Hello,
I could not manage to work this irule. Please help me to make it run.
Thanks
Lilly
=============================
**************
**************
**************
when CLIENT_DATA {
set pay1 [TCP::payload 8]
binary scan $pay1 IA4 len1 trx1
switch [IP::addr [IP::client_addr]]{
"x.x.x.x/24"{
switch -glob [class match $trx1 ] {
"A"{
do smthng}
}
"B" {
do something
}
"C" {
do something
}
default {
do something
}
}
}
"y.y.y.y/24"{
switch -glob [class match $trx1 ] {
"D"{
do something
}
"E" {
do something
}
"F" {
do something
}
default {
do something
}
}
}
}
}
=============================
- LillyM_9417AltostratusHello Hoolio,
- LillyM_9417AltostratusHello,
- hooleylistCirrostratusHamish replied here:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects