Class: Ansible::Ruby::Modules::Cnos_config
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cnos_config
- Defined in:
- lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb
Overview
Lenovo CNOS configurations use a simple block indent file syntax for segmenting configuration into sections. This module provides an implementation for working with CNOS configuration sections in a deterministic way.
Instance Method Summary collapse
-
#admin ⇒ :yes, ...
Enters into administration configuration mode for making config changes to the device.
-
#after ⇒ Object?
The ordered set of commands to append to the end of the command stack if a change needs to be made.
-
#backup ⇒ :yes, ...
This argument will cause the module to create a full backup of the current C(running-config) from the remote device before any changes are made.
-
#before ⇒ Object?
The ordered set of commands to push on to the command stack if a change needs to be made.
-
#comment ⇒ String?
Allows a commit description to be specified to be included when the configuration is committed.
-
#config ⇒ Object?
The module, by default, will connect to the remote device and retrieve the current running-config to use as a base for comparing against the contents of source.
-
#lines ⇒ Object?
The ordered set of commands that should be configured in the section.
-
#match ⇒ :line, ...
Instructs the module on the way to perform the matching of the set of commands against the current device config.
-
#parents ⇒ Object?
The ordered set of parents that uniquely identify the section the commands should be checked against.
-
#provider ⇒ Object?
A dict object containing connection details.
-
#replace ⇒ :line, ...
Instructs the module on the way to perform the configuration on the device.
-
#src ⇒ Object?
Specifies the source path to the file that contains the configuration or configuration template to load.
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
#admin ⇒ :yes, ...
49 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 49 attribute :admin |
#after ⇒ Object?
27 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 27 attribute :after |
#backup ⇒ :yes, ...
41 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 41 attribute :backup |
#before ⇒ Object?
24 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 24 attribute :before |
#comment ⇒ String?
45 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 45 attribute :comment |
#config ⇒ Object?
38 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 38 attribute :config |
#lines ⇒ Object?
15 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 15 attribute :lines |
#match ⇒ :line, ...
30 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 30 attribute :match |
#parents ⇒ Object?
18 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 18 attribute :parents |
#provider ⇒ Object?
12 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 12 attribute :provider |
#replace ⇒ :line, ...
34 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 34 attribute :replace |
#src ⇒ Object?
21 |
# File 'lib/ansible/ruby/modules/generated/network/cnos/cnos_config.rb', line 21 attribute :src |