Class: Ansible::Ruby::Modules::Aos_asn_pool
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Aos_asn_pool
- Defined in:
- lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb
Overview
Apstra AOS ASN Pool module let you manage your ASN Pool easily. You can create and delete ASN Pool by Name, ID or by using a JSON File. This module is idempotent and support the I(check) mode. It’s using the AOS REST API.
Instance Method Summary collapse
-
#content ⇒ String?
Datastructure of the ASN Pool to manage.
-
#id ⇒ Object?
AOS Id of the ASN Pool to manage.
-
#name ⇒ String?
Name of the ASN Pool to manage.
-
#ranges ⇒ Array<Array>, ...
List of ASNs ranges to add to the ASN Pool.
-
#session ⇒ String
An existing AOS session as obtained by M(aos_login) module.
-
#state ⇒ :present, ...
Indicate what is the expected state of the ASN Pool (present or not).
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
#content ⇒ String?
Returns Datastructure of the ASN Pool to manage. The data can be in YAML / JSON or directly a variable. It’s the same datastructure that is returned on success in I(value).
23 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 23 attribute :content |
#id ⇒ Object?
Returns AOS Id of the ASN Pool to manage. Only one of I(name), I(id) or I(content) can be set.
20 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 20 attribute :id |
#name ⇒ String?
Returns Name of the ASN Pool to manage. Only one of I(name), I(id) or I(content) can be set.
16 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 16 attribute :name |
#ranges ⇒ Array<Array>, ...
Returns List of ASNs ranges to add to the ASN Pool. Each range must have 2 values.
31 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 31 attribute :ranges |
#session ⇒ String
Returns An existing AOS session as obtained by M(aos_login) module.
12 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 12 attribute :session |
#state ⇒ :present, ...
Returns Indicate what is the expected state of the ASN Pool (present or not).
27 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_asn_pool.rb', line 27 attribute :state |