Class: Ansible::Ruby::Modules::Cl_img_install

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/network/cumulus/cl_img_install.rb

Overview

install a different version of Cumulus Linux in the inactive slot. For more details go the Image Management User Guide @ docs.cumulusnetworks.com/

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#srcObject

Returns full path to the Cumulus Linux binary image. Can be a local path, http or https URL. If the code version is in the name of the file, the module will assume this is the version of code you wish to install.

Returns:

  • (Object)

    full path to the Cumulus Linux binary image. Can be a local path, http or https URL. If the code version is in the name of the file, the module will assume this is the version of code you wish to install.



11
# File 'lib/ansible/ruby/modules/generated/core/network/cumulus/cl_img_install.rb', line 11

attribute :src

#switch_slot:yes, ...

Returns Switch slots after installing the image. To run the installed code, reboot the switch.

Returns:

  • (:yes, :no, nil)

    Switch slots after installing the image. To run the installed code, reboot the switch



18
# File 'lib/ansible/ruby/modules/generated/core/network/cumulus/cl_img_install.rb', line 18

attribute :switch_slot

#versionObject?

Returns inform the module of the exact version one is installing. This overrides the automatic check of version in the file name. For example, if the binary file name is called CumulusLinux-2.2.3.bin, and version is set to ‘2.5.0’, then the module will assume it is installing ‘2.5.0’ not ‘2.2.3’. If version is not included, then the module will assume ‘2.2.3’ is the version to install.

Returns:

  • (Object, nil)

    inform the module of the exact version one is installing. This overrides the automatic check of version in the file name. For example, if the binary file name is called CumulusLinux-2.2.3.bin, and version is set to ‘2.5.0’, then the module will assume it is installing ‘2.5.0’ not ‘2.2.3’. If version is not included, then the module will assume ‘2.2.3’ is the version to install.



15
# File 'lib/ansible/ruby/modules/generated/core/network/cumulus/cl_img_install.rb', line 15

attribute :version