Forum Discussion
kman_52500
Nimbostratus
May 01, 2009"syntax error" at character '}'
Hello,
I am trying to add an iRule to our f5 and it loads just fine but I get an error when doing a config sync or b verify load.
The iRule works well and loads just fine, but th...
hoolio
Cirrostratus
May 01, 2009Does the error occur when you try to save the iRule or when you try to load the configuration? Which LTM version are you running?
If you replace the set and unsets in the RULE_INIT event:
array set ::hit_list {}
array unset ::hit_list
array set ::block_state {}
array unset ::block_state
array set ::hit_count {}
array unset ::hit_count
with this:
if {[array exists ::hit_list]}{
array unset ::hit_list
}
if {[array exists ::block_state]}{
array unset ::block_state
}
if {[array exists ::hit_count]}{
array unset ::hit_count
}
Do you still see the error?
Aaron
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