Class: Ansible::Ruby::Modules::Nxos_interface

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

Overview

Manages physical attributes of interfaces of NX-OS switches

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

#admin_state:up, ...

Returns Administrative state of the interface.

Returns:

  • (:up, :down, nil)

    Administrative state of the interface



15
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb', line 15

attribute :admin_state

#descriptionString?

Returns Interface description.

Returns:

  • (String, nil)

    Interface description



19
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb', line 19

attribute :description

#interfaceString

Returns Full name of interface, i.e. Ethernet1/1, port-channel10.

Returns:

  • (String)

    Full name of interface, i.e. Ethernet1/1, port-channel10.



11
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb', line 11

attribute :interface

#mode:layer2, ...

Returns Manage Layer 2 or Layer 3 state of the interface.

Returns:

  • (:layer2, :layer3, nil)

    Manage Layer 2 or Layer 3 state of the interface



23
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb', line 23

attribute :mode

#state:present, ...

Returns Specify desired state of the resource.

Returns:

  • (:present, :absent, :default)

    Specify desired state of the resource



27
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_interface.rb', line 27

attribute :state