Forum Discussion
bigben932_22424
Altostratus
Jan 29, 2016iApp Template file using an Administrative Partition and not Common
I have a template file for my iApp that is not working properly. When my iApp and template are in an Administrative partition, the F5 adds some lines of code to the template file which cause it to no...
bigben932_22424
Altostratus
Feb 01, 2016Ahh thanks for the info Fred. I have found our issue. It appears that an old template file was being used. I took a look at the new template file, and compared it to an older working version I had backed up and noticed where our issue was. I implemented the changes, and notified our development staff to use this new template file.
Let me post snippet the code which solves this issue:
Old:
proc move_files_to_apm {xml_file html_file} {
set fh [open my_script w]
puts $fh "
Moving configuration file and html template to the APM:
tmsh modify apm resource sandbox hosted-content { files add {\
$xml_file { folder /AppletInstall local-path /var/tmp/$xml_file }}} 2>/dev/null
inl_errno=\$?
echo \"call 1:\$inl_errno\"
if \[ \$inl_errno -ne 0 \]; then
tmsh modify apm resource sandbox hosted-content { files modify {\
$xml_file { folder /AppletInstall local-path /var/tmp/$xml_file }}}
inl_errno=\$?
echo \"call 1a:\$inl_errno\"
if \[ \$inl_errno -ne 0 \]; then
exit \$inl_errno
fi
fiNew: proc move_files_to_apm {xml_file html_file} {
set fh [open my_script w]
set partition [lindex [split [tmsh::pwd] /] 1]
adding this parameter and using the variable in the tmsh modify apm.... Solved our problem
puts $fh "
Moving configuration file and html template to the APM:
tmsh modify apm resource sandbox /$partition/hosted-content { files add {\
$xml_file { folder /AppletInstall local-path /var/tmp/$xml_file }}} 2>/dev/null
inl_errno=\$?
echo \"call 1:\$inl_errno\"
if \[ \$inl_errno -ne 0 \]; then
tmsh modify apm resource sandbox /$partition/hosted-content { files modify {\
$xml_file { folder /AppletInstall local-path /var/tmp/$xml_file }}}
inl_errno=\$?
echo \"call 1a:\$inl_errno\"
if \[ \$inl_errno -ne 0 \]; then
exit \$inl_errno
fi
fiThank for the help Fred.
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