Forum Discussion
Daniel_Vu_10371
Nimbostratus
Mar 19, 2007What wrong with this irule
Could someone tell me what wrong with code below?
if { NODE:[LB::server]) eq "172.16.1.15"} {
TTP::redirect "http://www.test.com/signon.htm"
}
I got the error:
01070151:3: Rule [new_rule] error:
line 5: [parse error: PARSE syntax 232 {syntax error in expression " NODE:[LB::server]) eq "172.16.1.15"": variable references require preceding $}] [{ NODE:[LB::server]) eq "172.16.1.15"}]
Thanks,
4 Replies
Sort By
- Deb_Allen_18Historic F5 Account
- Wes_98712
Nimbostratus
You have a ) in your line, and I don't know what NODE is supposed to be. Try:if {[LB::server addr] eq "10.0.0.25"} { HTTP::redirect "http://www.test.com/signon.htm" }
- Wes_98712
Nimbostratus
Whoops replace, the IP with the correct one. ;-) - Daniel_Vu_10371
Nimbostratus
Thanks, it works.
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