Forum Discussion
Conrad_Link_166
Nimbostratus
May 21, 2004saving changes made via ITCMLocalLB.Class
I'm using the ITCMLocalLB.Class iControl functions to modify external string classes (using add_string_class_members and delete_string_class_members). I've found that after adding or removing entries ...
May 27, 2004
Great, thanks for the post!
1. Is there any way to avoid specifying the filename to save_configuration and have it fallback to the default? This would be useful in particular for the SAVE_HIGH_LEVEL_CONFIG SAVE_BASE_LEVEL_CONFIG.
I thought that an empty string would save to the default file but in looking at the code that is not the case. Currently you can specify a full path "/config/bigip.conf" or just the file name "bigip.conf" for the BASE_LEVEL and HIGH_LEVEL flags. I'll put this in as an enhancement request for a future update.
2. Is there any way with SOAP::Lite to programatically access the ITCMSystem.ConfigSync.SaveMode declaration so the numeric equivalent doesn't have to be hardcoded?
The way I've done this in the past in perl is to use local variables
my $SAVE_FULL = 0;
my $SAVE_COMMON = 1;
my $SAVE_HIGH_LEVEL_CONFIG = 2;
my $SAVE_BASE_LEVEL_CONFIG = 3;
...
$cfgsync->save_configuration("bigip.conf", $SAVE_HIGH_LEVEL_CONFIG);
For the next version of the product, we are moving our enums to strings so you reference the values by name which we believe is much more intuitive. The code would be:
$cfgsync->save_configuration("bigip.conf", "SAVE_HIGH_LEVEL_CONFIG");
Again, thanks for the code posting. The little bit of time it takes to post it will help others many times over!
-Joe
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
