Class: IControl::System::ConfigSync
- Inherits:
-
Base
- Object
- Base
- IControl::System::ConfigSync
- Defined in:
- lib/icontrol/system/config_sync.rb,
lib/icontrol/system.rb
Overview
The ConfigSync interface enables you to work with configuration files. For example, use the ConfigSync interface to retrieve a configuration file list, roll up and save a specified configuration, install a configuration on a device, synchronize configuration setups, roll back a configuration, and upload or download a configuration.
Defined Under Namespace
Classes: ConfigExcludeComponent, ConfigExcludeComponentSequence, ConfigFileEntry, ConfigFileSequence, ConfigIncludeComponent, ConfigIncludeComponentSequence, FileTransferContext, LoadMode, SaveMode, SyncMode
Instance Method Summary (collapse)
-
- (ConfigFileEntry) configuration_list
Gets a list of all available configuration archives on the system.
-
- (Object) delete_configuration
Deletes this configuration from the archive directory.
-
- (Object) delete_file
Deletes this file from the device.
-
- (FileTransferContext) download_configuration(opts)
Downloads the configurations from the device.
-
- (FileTransferContext) download_file(opts)
A generic file download mechanism to download a file from the device.
-
- (Object) install_all_configuration
Installs the configurations contained in this archive to the local device using the 'all' flag.
-
- (Object) install_all_encrypted_configuration(opts)
Installs the encrypted configurations contained in this archive to the local device using the 'all' flag.
-
- (Object) install_configuration
Installs the configurations contained in this archive to the local device.
-
- (Object) install_encrypted_configuration(opts)
Installs the encrypted configurations contained in this archive to the local device.
-
- (Object) load_configuration(opts)
Load this configuration.
-
- (Object) move_file(opts)
A generic file move mechanism to move files on a device.
-
- (Object) rollback_configuration
Rolls back to the previous configuration.
-
- (Object) save_configuration(opts)
Saves the current configurations to this archive.
-
- (Object) save_encrypted_configuration(opts)
Saves and encrypts the current configurations to this archive.
-
- (Object) save_partial_configuration(opts)
Saves the current configurations to this archive.
-
- (Object) save_partial_encrypted_configuration(opts)
Saves and encrypts the current configurations to this archive.
-
- (Object) synchronize_configuration(opts)
Synchronizes the configurations between the two devices in a redundant system.
-
- (Object) upload_configuration(opts)
Uploads the configurations to the device.
-
- (Object) upload_file(opts)
A generic file upload mechanism to transfer a file to the device.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (ConfigFileEntry) configuration_list
Gets a list of all available configuration archives on the system.
90 91 92 |
# File 'lib/icontrol/system/config_sync.rb', line 90 def configuration_list super end |
- (Object) delete_configuration
Deletes this configuration from the archive directory. If this file doesn't exist, an exception will be raised. The specified configuration should not contain any path information since it is restricted to be in the archive directory. NOTE: File names containing the following characters will be considered invalid: ` ~ / \ : ; * ? " < > | &
35 36 37 |
# File 'lib/icontrol/system/config_sync.rb', line 35 def delete_configuration super end |
- (Object) delete_file
Deletes this file from the device. If this file doesn't exist, an exception will be raised. NOTE: File names containing the following characters will be considered invalid: ` ~ \ : ; * ? " < > | &
47 48 49 |
# File 'lib/icontrol/system/config_sync.rb', line 47 def delete_file super end |
- (FileTransferContext) download_configuration(opts)
Downloads the configurations from the device.
62 63 64 65 |
# File 'lib/icontrol/system/config_sync.rb', line 62 def download_configuration(opts) check_params(opts,[:config_name,:chunk_size,:file_offset]) super end |
- (FileTransferContext) download_file(opts)
A generic file download mechanism to download a file from the device.
78 79 80 81 |
# File 'lib/icontrol/system/config_sync.rb', line 78 def download_file(opts) check_params(opts,[:file_name,:chunk_size,:file_offset]) super end |
- (Object) install_all_configuration
Installs the configurations contained in this archive to the local device using the 'all' flag.
109 110 111 |
# File 'lib/icontrol/system/config_sync.rb', line 109 def install_all_configuration super end |
- (Object) install_all_encrypted_configuration(opts)
Installs the encrypted configurations contained in this archive to the local device using the 'all' flag. If this archive is not already encrypted, then the passphrase is ignored, and installation will take place as normal.
123 124 125 126 |
# File 'lib/icontrol/system/config_sync.rb', line 123 def install_all_encrypted_configuration(opts) check_params(opts,[:passphrase]) super end |
- (Object) install_configuration
Installs the configurations contained in this archive to the local device.
134 135 136 |
# File 'lib/icontrol/system/config_sync.rb', line 134 def install_configuration super end |
- (Object) install_encrypted_configuration(opts)
Installs the encrypted configurations contained in this archive to the local device. If this archive is not already encrypted, then the passphrase is ignored, and installation will take place as normal.
148 149 150 151 |
# File 'lib/icontrol/system/config_sync.rb', line 148 def install_encrypted_configuration(opts) check_params(opts,[:passphrase]) super end |
- (Object) load_configuration(opts)
Load this configuration. If this configuration in "filenam" is empty, then by default, /config/bigip.conf will be loaded if the "load_flag" is LOAD_HIGH_LEVEL_CONFIG, and /config/bigip_base.conf will be loaded if the "load_flag" is LOAD_BASE_LEVEL_CONFIG.
163 164 165 166 |
# File 'lib/icontrol/system/config_sync.rb', line 163 def load_configuration(opts) check_params(opts,[:load_flag]) super end |
- (Object) move_file(opts)
A generic file move mechanism to move files on a device. This call does a rename of the file and will not work across filesystem boundaries.
178 179 180 181 |
# File 'lib/icontrol/system/config_sync.rb', line 178 def move_file(opts) check_params(opts,[:from_path,:to_path]) super end |
- (Object) rollback_configuration
Rolls back to the previous configuration.
189 190 191 |
# File 'lib/icontrol/system/config_sync.rb', line 189 def rollback_configuration super end |
- (Object) save_configuration(opts)
Saves the current configurations to this archive. If the "save_flag" is either SAVE_HIGH_LEVEL_CONFIG or SAVE_BASE_LEVEL_CONFIG, this filenam will be ignored, since by default, configuration will be saved into /config/bigip.conf or /config/bigip_base.conf respectively.
204 205 206 207 |
# File 'lib/icontrol/system/config_sync.rb', line 204 def save_configuration(opts) check_params(opts,[:save_flag]) super end |
- (Object) save_encrypted_configuration(opts)
Saves and encrypts the current configurations to this archive. This method is used to save whole configuration archive, not just what's in bigip.conf or bigip_base.conf.
218 219 220 221 |
# File 'lib/icontrol/system/config_sync.rb', line 218 def save_encrypted_configuration(opts) check_params(opts,[:passphrase]) super end |
- (Object) save_partial_configuration(opts)
Saves the current configurations to this archive. If the "save_flag" is either SAVE_HIGH_LEVEL_CONFIG or SAVE_BASE_LEVEL_CONFIG, this filenam will be ignored, since by default, configuration will be saved into /config/bigip.conf or /config/bigip_base.conf respectively. If any "features_to_exclude" components are specified, those components are excluded from the configuration. If any "features_to_include" components are specified, those components are included from the configuration. Note that feature inclusion/exclusion will only work when the save flag is "SAVE_FULL".
239 240 241 242 |
# File 'lib/icontrol/system/config_sync.rb', line 239 def save_partial_configuration(opts) check_params(opts,[:save_flag,:features_to_exclude,:features_to_include]) super end |
- (Object) save_partial_encrypted_configuration(opts)
Saves and encrypts the current configurations to this archive. This method is used to save whole configuration archive, not just what's in bigip.conf or bigip_base.conf. If any "features_to_exclude" components are specified, those components are excluded from the configuration. If any "features_to_include" components are specified, those components are included from the configuration. Note that feature inclusion/exclusion will only work when the save flag is "SAVE_FULL".
259 260 261 262 |
# File 'lib/icontrol/system/config_sync.rb', line 259 def save_partial_encrypted_configuration(opts) check_params(opts,[:passphrase,:features_to_exclude,:features_to_include]) super end |
- (Object) synchronize_configuration(opts)
Synchronizes the configurations between the two devices in a redundant system. In the case of cache devices, synchronizes the configurations across the cluster.
273 274 275 276 |
# File 'lib/icontrol/system/config_sync.rb', line 273 def synchronize_configuration(opts) check_params(opts,[:sync_flag]) super end |
- (Object) upload_configuration(opts)
Uploads the configurations to the device.
287 288 289 290 |
# File 'lib/icontrol/system/config_sync.rb', line 287 def upload_configuration(opts) check_params(opts,[:config_name,:file_context]) super end |
- (Object) upload_file(opts)
A generic file upload mechanism to transfer a file to the device.
301 302 303 304 |
# File 'lib/icontrol/system/config_sync.rb', line 301 def upload_file(opts) check_params(opts,[:file_name,:file_context]) super end |
- (String) version
Gets the version information for this interface.
98 99 100 |
# File 'lib/icontrol/system/config_sync.rb', line 98 def version super end |