Class: Ansible::Ruby::Modules::Ce_interface

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb

Overview

Manages physical attributes of interfaces on HUAWEI CloudEngine 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, fix_inclusion, #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 Specifies the interface management status. The value is an enumerated type. up, An interface is in the administrative Up state. down, An interface is in the administrative Down state.

Returns:

  • (:up, :down, nil)

    Specifies the interface management status. The value is an enumerated type. up, An interface is in the administrative Up state. down, An interface is in the administrative Down state.



19
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 19

attribute :admin_state

#descriptionObject?

Returns Specifies an interface description. The value is a string of 1 to 242 case-sensitive characters, spaces supported but question marks (?) not supported.

Returns:

  • (Object, nil)

    Specifies an interface description. The value is a string of 1 to 242 case-sensitive characters, spaces supported but question marks (?) not supported.



23
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 23

attribute :description

#interfaceObject?

Returns Full name of interface, i.e. 40GE1/0/10, Tunnel1.

Returns:

  • (Object, nil)

    Full name of interface, i.e. 40GE1/0/10, Tunnel1.



12
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 12

attribute :interface

#interface_type:ge, ...

Returns Interface type to be configured from the device.

Returns:

  • (:ge, :"10ge", :"25ge", :"4x10ge", :"40ge", :"100ge", :vlanif, :loopback, :meth, :"eth-trunk", :nve, :tunnel, :ethernet, :"fcoe-port", :"fabric-port", :"stack-port", :null, nil)

    Interface type to be configured from the device.



15
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 15

attribute :interface_type

#l2sub:yes, ...

Returns Specifies whether the interface is a Layer 2 sub-interface.

Returns:

  • (:yes, :no, nil)

    Specifies whether the interface is a Layer 2 sub-interface.



30
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 30

attribute :l2sub

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



26
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 26

attribute :mode

#state:present, ...

Returns Specify desired state of the resource.

Returns:

  • (:present, :absent, :default, nil)

    Specify desired state of the resource.



34
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_interface.rb', line 34

attribute :state