Ten_92952
Apr 29, 2011Nimbostratus
irule question
Would someone be able to tell my why the syntax for this irule is acceptable to the BigIp
when RULE_INIT {
Purpose:
This rule allows the ace servers access to the acme web
site servers
}
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::ace_servers] }{
} else {
discard
}
}
but this syntax
when RULE_INIT {
Purpose:
This rule allows the ace servers access to the acme web
site servers
}
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::ace_servers]}
else {
discard
}
}
gives the following error?
01070151:3: Rule [server_access] error: line 10: [undefined procedure: else] [else] line 10: [deprecated usage, use else or elseif] [ ]
thanks