Forum Discussion
Svevak_211593
Nimbostratus
Feb 26, 2016error: [undefined procedure: default][default]
HI,
can you help me correcting following codeblock?
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals datagroup-ntvSamsungSmartTVApp] } then {
pool datagroup-ntvS...
Kai_Wilke
MVP
Feb 26, 2016Hi Sevevak,
the problem with this code is the additional - sign after "LU". The - sign (seperator) is just required between multi-conditions, but not before the first and after the last condition...
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals datagroup-ntvSamsungSmartTVApp] } then {
pool datagroup-ntvSamsungSmartTVApp
} else {
switch -exact -- [whereis [IP::client_addr] country] {
"DE" -
"AT" -
"CH" -
"LI" -
"LU" {
pool webclips-http-dsr-pool
}
default {
reject
}
}
}
}
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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