Class: Ansible::Ruby::Modules::Junos_facts

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

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

Constructor Details

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

Instance Method Details

#configBoolean?

Returns The C(config) argument instructs the fact module to collect the configuration from the remote device. The configuration is then included in return facts. By default, the configuration is returned as text. The C(config_format) can be used to return different Junos configuration formats.

Returns:

  • (Boolean, nil)

    The C(config) argument instructs the fact module to collect the configuration from the remote device. The configuration is then included in return facts. By default, the configuration is returned as text. The C(config_format) can be used to return different Junos configuration formats.



10
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_facts.rb', line 10

attribute :config

#config_format:xml, ...

Returns The C(config_format) argument is used to specify the desired format of the configuration file. Devices support three configuration file formats. By default, the configuration from the device is returned as text. The other options include set and xml. If the xml option is choosen, the configuration file is returned as both xml and json.

Returns:

  • (:xml, :text, :set, nil)

    The C(config_format) argument is used to specify the desired format of the configuration file. Devices support three configuration file formats. By default, the configuration from the device is returned as text. The other options include set and xml. If the xml option is choosen, the configuration file is returned as both xml and json.



14
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_facts.rb', line 14

attribute :config_format