Class: Ansible::Ruby::Modules::Pn_vlan

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

Overview

Execute vlan-create or vlan-delete command. VLANs are used to isolate network traffic at Layer 2.The VLAN identifiers 0 and 4095 are reserved and cannot be used per the IEEE 802.1Q standard. The range of configurable VLAN identifiers is 2 through 4092.

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

#pn_clipasswordObject?

Returns Provide login password if user is not root.

Returns:

  • (Object, nil)

    Provide login password if user is not root.



16
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 16

attribute :pn_clipassword

#pn_cliswitchObject?

Returns Target switch(es) to run the cli on.

Returns:

  • (Object, nil)

    Target switch(es) to run the cli on.



19
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 19

attribute :pn_cliswitch

#pn_cliusernameObject?

Returns Provide login username if user is not root.

Returns:

  • (Object, nil)

    Provide login username if user is not root.



13
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 13

attribute :pn_cliusername

#pn_descriptionObject?

Returns Specify a description for the VLAN.

Returns:

  • (Object, nil)

    Specify a description for the VLAN.



34
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 34

attribute :pn_description

#pn_portsObject?

Returns Specifies the switch network data port number, list of ports, or range of ports. Port numbers must ne in the range of 1 to 64.

Returns:

  • (Object, nil)

    Specifies the switch network data port number, list of ports, or range of ports. Port numbers must ne in the range of 1 to 64.



40
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 40

attribute :pn_ports

#pn_scope:fabric, ...

Returns Specify a scope for the VLAN.,Required for vlan-create.

Returns:

  • (:fabric, :local, nil)

    Specify a scope for the VLAN.,Required for vlan-create.



30
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 30

attribute :pn_scope

#pn_statsObject?

Returns Specify if you want to collect statistics for a VLAN. Statistic collection is enabled by default.

Returns:

  • (Object, nil)

    Specify if you want to collect statistics for a VLAN. Statistic collection is enabled by default.



37
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 37

attribute :pn_stats

#pn_untagged_portsObject?

Returns Specifies the ports that should have untagged packets mapped to the VLAN. Untagged packets are packets that do not contain IEEE 802.1Q VLAN tags.

Returns:

  • (Object, nil)

    Specifies the ports that should have untagged packets mapped to the VLAN. Untagged packets are packets that do not contain IEEE 802.1Q VLAN tags.



43
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 43

attribute :pn_untagged_ports

#pn_vlanidInteger

Returns Specify a VLAN identifier for the VLAN. This is a value between 2 and 4092.

Returns:

  • (Integer)

    Specify a VLAN identifier for the VLAN. This is a value between 2 and 4092.



26
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 26

attribute :pn_vlanid

#state:present, :absent

Returns State the action to perform. Use ‘present’ to create vlan and ‘absent’ to delete vlan.

Returns:

  • (:present, :absent)

    State the action to perform. Use ‘present’ to create vlan and ‘absent’ to delete vlan.



22
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 22

attribute :state