Forum Discussion
arun_parthas_10
Nimbostratus
Mar 18, 2009Need help with writing an Irule
Hi
I have a situation where I have 4 clients hitting a VIP with two servers behind..
I am having a Least Connection ( member ) as LB method and Persistence set for 4 hours.. the ...
arun_parthas_10
Nimbostratus
Mar 23, 2009Denny
I wrote this iRule below and getting an error :
when CLIENT_ACCEPTED {
if { ([IP::addr [IP::client_addr] equals 172.24.81.20) || ([IP::addr [IP::client_addr] equals 172.24.8.16)
pool beta-cpc-web-pool-1-12100
} else {
pool beta-cpc-web-pool-2-12100
}
}
error :
01070151:3: Rule [CPC-LB-TEST] error: line 2: [parse error: PARSE missingBracket 86 {missing close-bracket}] [{ [IP::addr [IP::client_addr] equals 172.24.81.20 || [IP::addr [IP::client_addr] equals 172.24.8.16 pool beta-cpc-web-pool-1-12100 }] line 4: [undefined procedure: else] [else] line 4: [deprecated usage, use else or elseif] [ ]
Can you pleae help ?
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