Class: Ansible::Ruby::Modules::Cnos_facts

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

Overview

Collects a base set of device facts from a remote Lenovo device running on CNOS. This module prepends all of the base network fact keys with C(ansible_net_<fact>). The facts module will always collect a base set of facts from the device and can enable or disable collection of additional facts.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#auth_passObject?

Returns Specifies the password to use if required to enter privileged mode on the remote device. If I(authorize) is false, then this argument does nothing. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_AUTH_PASS) will be used instead.

Returns:

  • (Object, nil)

    Specifies the password to use if required to enter privileged mode on the remote device. If I(authorize) is false, then this argument does nothing. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_AUTH_PASS) will be used instead.



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

attribute :auth_pass

#authorize:yes, ...

Returns Instructs the module to enter privileged mode on the remote device before sending any commands. If not specified, the device will attempt to execute all commands in non-privileged mode. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_AUTHORIZE) will be used instead.

Returns:

  • (:yes, :no, nil)

    Instructs the module to enter privileged mode on the remote device before sending any commands. If not specified, the device will attempt to execute all commands in non-privileged mode. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_AUTHORIZE) will be used instead.



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

attribute :authorize

#gather_subsetString?

Returns When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all, hardware, config, and interfaces. Can specify a list of values to include a larger subset. Values can also be used with an initial C(M(!)) to specify that a specific subset should not be collected.

Returns:

  • (String, nil)

    When supplied, this argument will restrict the facts collected to a given subset. Possible values for this argument include all, hardware, config, and interfaces. Can specify a list of values to include a larger subset. Values can also be used with an initial C(M(!)) to specify that a specific subset should not be collected.



22
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_facts.rb', line 22

attribute :gather_subset

#providerObject?

Returns A dict object containing connection details.

Returns:

  • (Object, nil)

    A dict object containing connection details.



19
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_facts.rb', line 19

attribute :provider