Class: Ansible::Ruby::Modules::Cnos_rollback
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cnos_rollback
- Defined in:
- lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb
Overview
This module allows you to work with switch configurations. It provides a way to roll back configurations of a switch from a remote server. This is achieved by using startup or running configurations of the target device that were previously backed up to a remote server using FTP, SFTP, TFTP, or SCP. The first step is to create a directory from where the remote server can be reached. The next step is to provide the full file path of he backup configuration’s location. Authentication details required by the remote server must be provided as well. By default, this method overwrites the switch’s configuration file with the newly downloaded file. This module uses SSH to manage network device configuration. The results of the operation will be placed in a directory named ‘results’ that must be created by the user in their local directory to where the playbook is run. For more information about this module from Lenovo and customizing it usage for your use cases, please visit U(systemx.lenovofiles.com/help/index.jsp?topic=%2Fcom.lenovo.switchmgt.ansible.doc%2Fcnos_rollback.html)
Instance Method Summary collapse
-
#configType ⇒ :"running-config", :"startup-config"
This refers to the type of configuration which will be used for the rolling back process.
-
#protocol ⇒ :SFTP, ...
This refers to the protocol used by the network device to interact with the remote server from where to download the backup configuration.
-
#rcpath ⇒ Object
This specifies the full file path of the configuration file located on the remote server.
-
#rcserverip ⇒ Object
This specifies the IP Address of the remote server from where the backup configuration will be downloaded.
-
#serverpassword ⇒ Object
Specify password for the server relating to the protocol used.
-
#serverusername ⇒ Object
Specify username for the server relating to the protocol used.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#configType ⇒ :"running-config", :"startup-config"
12 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 12 attribute :configType |
#protocol ⇒ :SFTP, ...
16 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 16 attribute :protocol |
#rcpath ⇒ Object
24 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 24 attribute :rcpath |
#rcserverip ⇒ Object
20 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 20 attribute :rcserverip |
#serverpassword ⇒ Object
32 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 32 attribute :serverpassword |
#serverusername ⇒ Object
28 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_rollback.rb', line 28 attribute :serverusername |