Class: Ansible::Ruby::Modules::Cnos_conditional_command

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/cnos/cnos_conditional_command.rb

Overview

This module allows you to modify the running configuration of a switch. It provides a way to execute a single CNOS command on a network device by evaluating the current running configuration and executing the command only if the specific settings have not been already configured. The CNOS command is passed as an argument of the method. This module functions the same as the cnos_command module. The only exception is that following inventory variable can be specified [“condition = <flag string>”] When this inventory variable is specified as the variable of a task, the command is executed for the network element that matches the flag string. Usually, commands are executed across a group of network devices. When there is a requirement to skip the execution of the command on one or more devices, it is recommended to use this module. This module uses SSH to manage network device configuration. 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_conditional_command.html)

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

#clicommandObject



12
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_conditional_command.rb', line 12

attribute :clicommand

#conditionObject



16
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_conditional_command.rb', line 16

attribute :condition

#flagObject



20
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_conditional_command.rb', line 20

attribute :flag