Class: Ansible::Ruby::Modules::Onyx_config
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Onyx_config
- Defined in:
- lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb
Overview
Mellanox ONYX configurations uses a simple block indent file syntax for segmenting configuration into sections. This module provides an implementation for working with ONYX configuration sections in a deterministic way.
Instance Method Summary collapse
-
#after ⇒ Object?
The ordered set of commands to append to the end of the command stack if a change needs to be made.
-
#backup ⇒ Symbol?
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.
-
#config ⇒ Object?
The C(config) argument allows the playbook designer to supply the base configuration to be used to validate configuration changes necessary.
-
#lines ⇒ Array<String>, ...
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.
-
#replace ⇒ :line, ...
Instructs the module on the way to perform the configuration on the device.
-
#save ⇒ Symbol?
The C(save) argument instructs the module to save the running- config to the startup-config at the conclusion of the module running.
-
#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
#after ⇒ Object?
25 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 25 attribute :after |
#backup ⇒ Symbol?
36 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 36 attribute :backup |
#before ⇒ Object?
22 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 22 attribute :before |
#config ⇒ Object?
40 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 40 attribute :config |
#lines ⇒ Array<String>, ...
12 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 12 attribute :lines |
#match ⇒ :line, ...
28 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 28 attribute :match |
#parents ⇒ Object?
16 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 16 attribute :parents |
#replace ⇒ :line, ...
32 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 32 attribute :replace |
#save ⇒ Symbol?
43 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 43 attribute :save |
#src ⇒ Object?
19 |
# File 'lib/ansible/ruby/modules/generated/network/onyx/onyx_config.rb', line 19 attribute :src |