Class: Ansible::Ruby::Modules::Pn_vlan
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Pn_vlan
- 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
-
#pn_clipassword ⇒ Object?
Provide login password if user is not root.
-
#pn_cliswitch ⇒ Object?
Target switch(es) to run the cli on.
-
#pn_cliusername ⇒ Object?
Provide login username if user is not root.
-
#pn_description ⇒ Object?
Specify a description for the VLAN.
-
#pn_ports ⇒ Object?
Specifies the switch network data port number, list of ports, or range of ports.
-
#pn_scope ⇒ :fabric, ...
Specify a scope for the VLAN.,Required for vlan-create.
-
#pn_stats ⇒ Object?
Specify if you want to collect statistics for a VLAN.
-
#pn_untagged_ports ⇒ Object?
Specifies the ports that should have untagged packets mapped to the VLAN.
-
#pn_vlanid ⇒ Integer
Specify a VLAN identifier for the VLAN.
-
#state ⇒ :present, :absent
State the action to perform.
Methods inherited from Base
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
#pn_clipassword ⇒ Object?
Returns 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_cliswitch ⇒ Object?
Returns 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_cliusername ⇒ Object?
Returns 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_description ⇒ Object?
Returns Specify a description for the VLAN.
34 |
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 34 attribute :pn_description |
#pn_ports ⇒ Object?
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.
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.
30 |
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 30 attribute :pn_scope |
#pn_stats ⇒ Object?
Returns 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_ports ⇒ Object?
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.
43 |
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 43 attribute :pn_untagged_ports |
#pn_vlanid ⇒ Integer
Returns 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.
22 |
# File 'lib/ansible/ruby/modules/generated/network/netvisor/pn_vlan.rb', line 22 attribute :state |