dellemc.unity.interface module – Manage Interfaces on Unity storage system
Note
This module is part of the dellemc.unity collection (version 1.6.0).
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 dellemc.unity
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.unity.interface
.
New in dellemc.unity 1.4.0
Synopsis
Managing the Interfaces on the Unity storage system includes adding Interfaces to NAS Server, getting details of interface and deleting configured interfaces.
Requirements
The below requirements are needed on the host that executes this module.
A Dell Unity Storage device version 5.1 or later.
Ansible-core 2.12 or later.
Python 3.9, 3.10 or 3.11.
Storops Python SDK 1.2.11.
Parameters
Parameter |
Comments |
---|---|
ID of the ethernet port. |
|
Name of the ethernet port. |
|
Gateway of network interface. |
|
IP of network interface. |
|
ID of the NAS server for which interface will be configured. |
|
Name of the NAS server for which interface will be configured. |
|
Netmask of network interface. |
|
The password of the Unity management server. |
|
Port number through which communication happens with Unity management server. Default: |
|
Prefix length is mutually exclusive with netmask. |
|
Indicates whether interface is configured as production or backup. Choices:
|
|
Define whether the interface should exist or not. Choices:
|
|
IP or FQDN of the Unity management server. |
|
The username of the Unity management server. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
|
Vlan id of the interface. |
Notes
Note
The check_mode is supported.
Modify operation for interface is not supported.
The modules present in this collection named as ‘dellemc.unity’ are built to support the Dell Unity storage platform.
Examples
- name: Add Interface as Backup to NAS Server
dellemc.unity.interface:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
role: "BACKUP"
interface_ip: "xx.xx.xx.xx"
netmask: "xx.xx.xx.xx"
gateway: "xx.xx.xx.xx"
vlan_id: 324
state: "present"
- name: Add Interface as Production to NAS Server
dellemc.unity.interface:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
role: "PRODUCTION"
interface_ip: "xx.xx.xx.xx"
netmask: "xx.xx.xx.xx"
gateway: "xx.xx.xx.xx"
vlan_id: 324
state: "present"
- name: Get interface details
dellemc.unity.interface:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
interface_ip: "xx.xx.xx.xx"
state: "present"
- name: Delete Interface
dellemc.unity.interface:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
interface_ip: "xx.xx.xx.xx"
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the interface. Returned: When interface is configured for NAS Server. Sample: |
|
Indicates if interface exists. Returned: success |
|
Gateway of network interface. Returned: success |
|
Unique identifier interface. Returned: success |
|
IP address of interface. Returned: success |
|
Port on which network interface is configured. Returned: success |
|
ID of ip_port. Returned: success |
|
IP protocol version. Returned: success |
|
Indicates whether interface is disabled. Returned: success |
|
Indicates whether interface is preferred. Returned: success |
|
Mac address of ip_port. Returned: success |
|
System configured name of interface. Returned: success |
|
Details of NAS server where interface is configured. Returned: success |
|
ID of NAS Server. Returned: success |