Forum Discussion
Michel_van_der_
Nimbostratus
Nov 29, 2005Is there an equivalent of 'bigpipe reset'...
In the API?
Michel
5 Replies
- There currently is not a single command to emulate "bigpipe reset" which basically wipes out all high level config. The way you would do this in iControl would be to use a couple of methods in the System::ConfigSync interface.
1. use ConfigSync::upload_file to upload an empty file to the /config directory.
2. call ConfigSync::install_configuration with this empty file using the SAVE_HIGH_LEVEL_CONFIG flag.
This basically does a "bigpipe load" on an empty configuration.
This will effectively reset the running high level config. Make sure that you backup your original configuration first so you don't accidentally get into a situation you can't undo.
-Joe - Michel_van_der_
Nimbostratus
Thanks. - System::ConfigSync::install_configuration() is not the method you are looking for. That is equivalent to running a full system configuration (.ucs). What you are looking for is the System::ConfigSync::load_configuration() method which is the equivalent to a "bigpipe load" or "bigpipe base load" (depending on the input flag).
enum LoadMode { LOAD_HIGH_LEVEL_CONFIG = 0, // aka bigpipe load LOAD_BASE_LEVEL_CONFIG = 1, // aka bigpipe base load }; void System::ConfigSync::load_configuration( in String filename, in LoadMode load_flag );
Also, make sure you pass in the full path in the filename parameter or it will default to the /var/local/ucs directory (as your log suggests).
Looking back, it probably would have been better to implement both of those methods as one like we did for save_configuration(), but we developed install_configuration() for full .ucs installs before we had load_configuration() and we wanted to maintain backward compatibility.
-Joe - Michel_van_der_
Nimbostratus
OK, (finally got back to it) and that works, thanks!
Now next question. This appears to remove the shared IPs that were defined (i.e.
addresses that were created by Networking/SelfIP, with the flag 'floating_states'
set to STATE_ENABLED.
Is that expected? - This erases everything defined in the /config/bigip.conf. If the shared addresses are defined in there then it will erase them. Instead of uploading a blank file, you might want to work with a stripped down file instead.
You could always download the bigip.conf with the download_configration() method. Strip out everything you want to omit, upload that file and then load.
-Joe
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
