Forum Discussion
iApp works in production, but fails sys load verify.
- Jul 25, 2016
Archie- Tcl processes quoted strings, allowing for variable substitution. The Tcl validator is attempting to interpret the unpaired brace as a boundary character. A simplified reproduction of the error is this:
sys application template x { actions { definition { implementation { set x "{" } presentation { } } }
root@(big82)(cfg-sync Standalone)(ModuleNotLicensed:Active)(/Common)(tmos) load sys config verify... Syntax Error:(/config/bigip_script.conf at line: 63644) incomplete command
Escaping should work. Did you escape all of the quoted braces? I tried building an iapp with all of the statements above, and could not get it to fail.
Archie- Tcl processes quoted strings, allowing for variable substitution. The Tcl validator is attempting to interpret the unpaired brace as a boundary character. A simplified reproduction of the error is this:
sys application template x {
actions {
definition {
implementation {
set x "{"
}
presentation {
}
}
}
root@(big82)(cfg-sync Standalone)(ModuleNotLicensed:Active)(/Common)(tmos) load sys config verify... Syntax Error:(/config/bigip_script.conf at line: 63644) incomplete command
Escaping should work. Did you escape all of the quoted braces? I tried building an iapp with all of the statements above, and could not get it to fail.
No, that looks OK. To force a literal within quotes, escape { } because they represent Tcl lists, [ ] because they represent code to be executed and result substituted, and $ because it represents variable substitution. Within braces, you do not have to substitute [ ] or $. You can read more about all that at http://tmml.sourceforge.net/doc/tcl/Tcl.html
Recent Discussions
Related Content
* 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