hitachivantara.vspone_block.vsp.hv_vsp_one_port module – Manages ports on VSP E series, VSP One Block 20 series, and VSP One Block 80 series storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.1).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.vsp.hv_vsp_one_port.
New in hitachivantara.vspone_block 4.3.0
Synopsis
This module manages port configuration on VSP E series, VSP One Block 20 series, and VSP One Block 80 series storage systems.
Utilizes the Hitachi Virtual Storage Platform One Simple API for port management across VSP One B20 series, VSP One B80 series, and VSP E series models.
For usage examples, visit https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/vsp_one_port.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Token used to operate on locked resources. |
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Configuration parameters for managing port settings. |
|
Whether to enable port security. Required for the Configure basic port settings (port security and speed) /Configure FC port with all settings /Configure iSCSI port with comprehensive settings tasks. Choices:
|
|
Fibre Channel specific settings. Required for the Configure FC port with all settings task. |
|
Arbitrated Loop Physical Address. Required for the Configure FC port with all settings task. |
|
FC connection type choices are |
|
Whether to enable fabric switch setting. Required for the Configure FC port with all settings task. Choices:
|
|
iSCSI specific settings. Required for the Configure iSCSI port with comprehensive settings /Remove VLAN from iSCSI port tasks. |
|
VLAN ID to add. Required for the Configure iSCSI port with comprehensive settings task. |
|
VLAN ID to delete. Required for the Remove VLAN from iSCSI port task. |
|
Whether to enable delayed ACK. Required for the Configure iSCSI port with comprehensive settings task. Choices:
|
|
Whether to enable iSNS server mode. Required for the Configure iSCSI port with comprehensive settings task. Choices:
|
|
Whether to enable selective ACK. Required for the Configure iSCSI port with comprehensive settings task. Choices:
|
|
Whether to enable virtual port. Choices:
|
|
Whether to enable VLAN use. Required for the Configure iSCSI port with comprehensive settings task. Choices:
|
|
IP mode configuration. Choices are |
|
IPv4 configuration settings. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv4 address. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv4 default gateway. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv4 subnet mask. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv6 configuration settings. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv6 default gateway. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv6 global address. Required for the Configure iSCSI port with comprehensive settings task. |
|
IPv6 link-local address. Required for the Configure iSCSI port with comprehensive settings task. |
|
iSNS server IP address. Required for the Configure iSCSI port with comprehensive settings task. |
|
iSNS server port. Required for the Configure iSCSI port with comprehensive settings task. |
|
Keep alive timer value. Required for the Configure iSCSI port with comprehensive settings task. |
|
MTU size. Choices are |
|
TCP port number. Required for the Configure iSCSI port with comprehensive settings task. |
|
TCP window size. Choices are |
|
NVMe over TCP specific settings. Required for the Configure NVMe over TCP port with all parameters task. |
|
VLAN ID to add. Required for the Configure NVMe over TCP port with all parameters task. |
|
VLAN ID to delete. |
|
Discovery TCP port number. Required for the Configure NVMe over TCP port with all parameters task. |
|
Whether to enable delayed ACK. Required for the Configure NVMe over TCP port with all parameters task. Choices:
|
|
Whether to enable selective ACK. Required for the Configure NVMe over TCP port with all parameters task. Choices:
|
|
Whether to enable VLAN use. Required for the Configure NVMe over TCP port with all parameters task. Choices:
|
|
IP mode configuration. Choices are |
|
IPv4 settings. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv4 address. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv4 default gateway. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv4 subnet mask. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv6 settings. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv6 default gateway. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv6 global address. Required for the Configure NVMe over TCP port with all parameters task. |
|
IPv6 link-local address. Required for the Configure NVMe over TCP port with all parameters task. |
|
MTU size. Choices are |
|
TCP port number. Required for the Configure NVMe over TCP port with all parameters task. |
|
TCP window size. Choices are |
|
Port identifier to configure. Required for the Configure basic port settings (port security and speed) /Configure FC port with all settings /Configure iSCSI port with comprehensive settings /Configure NVMe over TCP port with all parameters /Remove VLAN from iSCSI port /Configure port with minimal settings tasks. |
|
Port speed in Gbps. Required for the Configure basic port settings (port security and speed) /Configure FC port with all settings /Configure iSCSI port with comprehensive settings /Configure NVMe over TCP port with all parameters /Configure port with minimal settings tasks. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Specifies whether the module operates in check mode. |
Examples
- name: Configure basic port settings (port security and speed)
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL1-C"
port_speed_in_gbps: 32
enable_port_security: true
- name: Configure FC port with all settings
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL2-A"
port_speed_in_gbps: 16
enable_port_security: false
fc_settings:
al_pa: "0x01"
should_enable_fabric_switch_setting: true
connection_type: "Point_To_Point"
- name: Configure iSCSI port with comprehensive settings
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL3-B"
port_speed_in_gbps: 25
enable_port_security: true
iscsi_settings:
enable_vlan_use: true
add_vlan_id: 100
ip_mode: "ipv4v6"
ipv4_configuration:
address: "192.168.1.100"
subnet_mask: "255.255.255.0"
default_gateway: "192.168.1.1"
ipv6_configuration:
linklocal: "fe80::1"
global: "2001:db8::100"
default_gateway: "2001:db8::1"
tcp_port: 3260
enable_selective_ack: true
enable_delayed_ack: false
window_size: "NUMBER_256K"
mtu_size: "NUMBER_9000"
keep_alive_timer: 300
enable_isns_server_mode: true
isns_server_ip_address: "192.168.1.200"
isns_server_port: 3205
enable_virtual_port: false
- name: Configure NVMe over TCP port with all parameters
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL4-D"
port_speed_in_gbps: 100
enable_port_security: false
nvme_tcp_settings:
enable_vlan_use: true
add_vlan_id: 200
ip_mode: "ipv4"
ipv4_settings:
address: "10.0.1.50"
subnet_mask: "255.255.255.0"
default_gateway: "10.0.1.1"
ipv6_settings:
linklocal: "fe80::2"
global_: "2001:db8:1::50"
default_gateway: "2001:db8:1::1"
tcp_port: 4420
discovery_tcp_port: 8009
enable_selective_ack: false
enable_delayed_ack: true
window_size: "NUMBER_512K"
mtu_size: "NUMBER_4500"
- name: Remove VLAN from iSCSI port
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL3-B"
iscsi_settings:
delete_vlan_id: 100
- name: Configure port with minimal settings
hitachivantara.vspone_block.vsp.hv_vsp_one_port:
connection_info:
address: vsp.company.com
username: "admin"
password: "password"
spec:
port_id: "CL1-A"
port_speed_in_gbps: 0 # Auto speed
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Port information retrieved from the storage system. Returned: always |
|
Current actual speed of the port. Returned: success Sample: |
|
Fibre Channel information for the port. Returned: success |
|
Arbitrated Loop Physical Address. Returned: success Sample: |
|
Fibre Channel connection type. Returned: success Sample: |
|
Whether fabric switch setting is enabled. Returned: success Sample: |
|
Port mode setting. Returned: success Sample: |
|
SFP data transfer rate. Returned: success Sample: |
|
Port identifier. Returned: success Sample: |
|
iSCSI information for the port. Returned: success |
|
Delayed ACK setting. Returned: success Sample: |
|
IP mode (ipv4 or ipv6). Returned: success Sample: |
|
IPv4 configuration details. Returned: success |
|
IPv4 address. Returned: success Sample: |
|
Default gateway address. Returned: success Sample: |
|
Subnet mask. Returned: success Sample: |
|
IPv6 configuration details. Returned: success |
|
Default gateway for IPv6. Returned: success Sample: |
|
Global IPv6 configuration mode. Returned: success Sample: |
|
Global IPv6 address. Returned: success Sample: |
|
Status of global IPv6 address. Returned: success Sample: |
|
Link-local IPv6 configuration mode. Returned: success Sample: |
|
Link-local IPv6 address. Returned: success Sample: |
|
Status of link-local IPv6 address. Returned: success Sample: |
|
Whether IPv6 is currently updating. Returned: success Sample: |
|
iSNS server IP address. Returned: success Sample: |
|
Whether iSNS server mode is enabled. Returned: success Sample: |
|
iSNS server port number. Returned: success Sample: |
|
Keep alive timer value in seconds. Returned: success Sample: |
|
Link MTU size. Returned: success Sample: |
|
MTU size. Returned: success Sample: |
|
Selective ACK setting. Returned: success Sample: |
|
TCP port number. Returned: success Sample: |
|
Whether virtual port is enabled. Returned: success Sample: |
|
Whether VLAN is in use. Returned: success Sample: |
|
TCP window size. Returned: success Sample: |
|
NVMe over TCP information for the port. Returned: success |
|
Delayed ACK setting. Returned: success Sample: |
|
IP mode (ipv4 or ipv6). Returned: success Sample: |
|
IPv4 configuration details. Returned: success |
|
IPv4 address. Returned: success Sample: |
|
Default gateway address. Returned: success Sample: |
|
Subnet mask. Returned: success Sample: |
|
IPv6 configuration details. Returned: success |
|
Whether IPv6 is currently updating. Returned: success Sample: |
|
Link MTU size. Returned: success Sample: |
|
MTU size. Returned: success Sample: |
|
TCP port number. Returned: success Sample: |
|
Whether virtual port is enabled. Returned: success Sample: |
|
iSCSI name for the port. Returned: success Sample: |
|
Whether port security is enabled. Returned: success Sample: |
|
Configured port speed. Returned: success Sample: |
|
Port WWN address. Returned: success Sample: |
|
Protocol used by the port. Returned: success Sample: |