Forum Discussion
smp_86112
Cirrostratus
Apr 16, 2010Error saving iRule because of comment
I am testing the upgrade of our 9.3.1 config to 10.1.0, and ran across an error that prevents the config from loading in v10. I figured out how to fix the error, but wanted to retain the existing code during my testing. So I simply commented out the problem line. However this commented line prevents the iRule from updating:
when HTTP_RESPONSE {
switch -glob [string tolower [HTTP::host]] {
switch -glob [string tolower [HTTP::header "Host"]] {
(do some stuff)
}
}
01070151:3: Rule [junk] error: line 1: [parse error: missing close-brace: possible unbalanced brace in comment] [{ switch -glob [string tolower [HTTP::host]] ..........
The TCL guide says are valid comments - what am I missing?
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