Forum Discussion
MIGUEL_MELENDEZ
Nimbostratus
Jul 13, 2006TCL error: Rule after convert irule with otcu
Hello everybody,
I am having problems with a irule converted with the utility OTCU ( from v4.5 to v9.2.3) and I am receiving the following message on /var/log/ltm
TCL error: Rule ...
hoolio
Cirrostratus
Jul 14, 2006I think the most efficient way to test the server port would be to use a switch statement. Also, the way to reference the server port in 9.x is TCP::local_port in the client side context.
Here is an example rule:
rule Rule-OSN-IN {
when CLIENT_ACCEPTED {
set vip_port [TCP::local_port]
switch $vip_port {
25 { pool osn-in }
80 { pool osn-in }
default { pool default_pool }
}
}
}
Note that I haven't checked the exact syntax. You may need to break the switch cases up onto separate lines.
If you run into any problems, try posting again here with the rule you tested and any errors.
Aaron
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