Forum Discussion
ccb
Employee
Feb 20, 2013Using tmsh::delete to delete a profile created by create_http_comp_accel_profiles
Hi,
I have a scenario where I want to use my own custom wan-optimized compression profile and not the one that is automatically created with create_http_comp_accel_profiles.
Using tmsh_modi...
Mitra_Kelly_625
Feb 21, 2013Historic F5 Account
The delete command fails silently when run from an iApp. So, if you don't have the object name perfect, you will see the command in the log, bug nothing will happen.
I noticed that in the code that you presented, you are using a different object name when you remove the profile from the virtual server than you do when you try to delete that profile.
tmsh_modify "/ ltm virtual" "$vs_name profiles delete \{ $existing_compression_profile \}"
tmsh::delete ltm profile http-compression $tmsh::app_name.app/$existing_compression_profile
I think that, assuming that the modify command with the variable $existing_compression_profile successfully removes the profile from the virtual server, then the command
tmsh::delete ltm profile http-compression $existing_compression_profile
should succeed in deleting the profile.
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