Class: Ansible::Ruby::Modules::Eos_eapi

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

Overview

Use to enable or disable EAPI access, and set the port and state of http, https, localHttp and unix-socket servers. When enabling EAPI access the default is to enable HTTP on port 80, enable HTTPS on port 443, disable local HTTP, and disable Unix socket server. Use the options listed below to override the default configuration. Requires EOS v4.12 or greater.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#httpBoolean?

Returns Enable HTTP server access.

Returns:

  • (Boolean, nil)

    Enable HTTP server access.



29
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 29

attribute :http

#http_portInteger?

Returns Port on which the HTTP server will listen.

Returns:

  • (Integer, nil)

    Port on which the HTTP server will listen.



17
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 17

attribute :http_port

#httpsBoolean?

Returns Enable HTTPS server access.

Returns:

  • (Boolean, nil)

    Enable HTTPS server access.



33
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 33

attribute :https

#https_portInteger?

Returns Port on which the HTTPS server will listen.

Returns:

  • (Integer, nil)

    Port on which the HTTPS server will listen.



21
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 21

attribute :https_port

#local_httpBoolean?

Returns Enable local HTTP server access.

Returns:

  • (Boolean, nil)

    Enable local HTTP server access.



37
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 37

attribute :local_http

#local_http_portInteger?

Returns Port on which the local HTTP server will listen.

Returns:

  • (Integer, nil)

    Port on which the local HTTP server will listen.



25
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 25

attribute :local_http_port

#socketBoolean?

Returns Enable Unix socket server access.

Returns:

  • (Boolean, nil)

    Enable Unix socket server access.



41
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 41

attribute :socket

#state:started, ...

Returns Set to started or stopped. A state of started will enable EAPI access, and a state of stopped will disable or shutdown all EAPI access.

Returns:

  • (:started, :stopped, nil)

    Set to started or stopped. A state of started will enable EAPI access, and a state of stopped will disable or shutdown all EAPI access.



13
# File 'lib/ansible/ruby/modules/generated/core/network/eos/eos_eapi.rb', line 13

attribute :state