Class: Ansible::Ruby::Modules::Aos_asn_pool

Inherits:
Base show all
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

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

#contentString?

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).

Returns:

  • (String, nil)

    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

#idObject?

Returns AOS Id of the ASN Pool to manage. Only one of I(name), I(id) or I(content) can be set.

Returns:

  • (Object, nil)

    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

#nameString?

Returns Name of the ASN Pool to manage. Only one of I(name), I(id) or I(content) can be set.

Returns:

  • (String, nil)

    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

#rangesArray<Array>, ...

Returns List of ASNs ranges to add to the ASN Pool. Each range must have 2 values.

Returns:

  • (Array<Array>, Array, nil)

    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

#sessionString

Returns An existing AOS session as obtained by M(aos_login) module.

Returns:

  • (String)

    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).

Returns:

  • (:present, :absent, nil)

    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