Debian Codegraph @

ansible_collections/dellemc/unity/docs/modules/interface.rst

raw
1 .. _interface_module:
2
3
4 interface -- Manage Interfaces on Unity storage system
5 ======================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing the Interfaces on the Unity storage system includes adding Interfaces to NAS Server, getting details of interface and deleting configured interfaces.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - A Dell Unity Storage device version 5.1 or later.
24 - Ansible-core 2.17 or later.
25 - Python 3.11, or 3.12.
26 - Storops Python SDK 1.2.12.
27
28
29
30 Parameters
31 ----------
32
33 nas_server_name (optional, str, None)
34 Name of the NAS server for which interface will be configured.
35
36
37 nas_server_id (optional, str, None)
38 ID of the NAS server for which interface will be configured.
39
40
41 ethernet_port_name (optional, str, None)
42 Name of the ethernet port.
43
44
45 ethernet_port_id (optional, str, None)
46 ID of the ethernet port.
47
48
49 role (optional, str, None)
50 Indicates whether interface is configured as production or backup.
51
52
53 interface_ip (True, str, None)
54 IP of network interface.
55
56
57 netmask (optional, str, None)
58 Netmask of network interface.
59
60
61 prefix_length (optional, int, None)
62 Prefix length is mutually exclusive with *netmask*.
63
64
65 gateway (optional, str, None)
66 Gateway of network interface.
67
68
69 vlan_id (optional, int, None)
70 Vlan id of the interface.
71
72
73 state (True, str, None)
74 Define whether the interface should exist or not.
75
76
77 unispherehost (True, str, None)
78 IP or FQDN of the Unity management server.
79
80
81 username (True, str, None)
82 The username of the Unity management server.
83
84
85 password (True, str, None)
86 The password of the Unity management server.
87
88
89 validate_certs (optional, bool, True)
90 Boolean variable to specify whether or not to validate SSL certificate.
91
92 ``true`` - Indicates that the SSL certificate should be verified.
93
94 ``false`` - Indicates that the SSL certificate should not be verified.
95
96
97 port (optional, int, 443)
98 Port number through which communication happens with Unity management server.
99
100
101
102
103
104 Notes
105 -----
106
107 .. note::
108 - The *check_mode* is supported.
109 - Modify operation for interface is not supported.
110 - The modules present in this collection named as 'dellemc.unity' are built to support the Dell Unity storage platform.
111
112
113
114
115 Examples
116 --------
117
118 .. code-block:: yaml+jinja
119
120
121
122 - name: Add Interface as Backup to NAS Server
123 interface:
124 unispherehost: "{{unispherehost}}"
125 username: "{{username}}"
126 password: "{{password}}"
127 validate_certs: "{{validate_certs}}"
128 nas_server_name: "dummy_nas"
129 ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
130 role: "BACKUP"
131 interface_ip: "xx.xx.xx.xx"
132 netmask: "xx.xx.xx.xx"
133 gateway: "xx.xx.xx.xx"
134 vlan_id: 324
135 state: "present"
136
137 - name: Add Interface as Production to NAS Server
138 interface:
139 unispherehost: "{{unispherehost}}"
140 username: "{{username}}"
141 password: "{{password}}"
142 validate_certs: "{{validate_certs}}"
143 nas_server_name: "dummy_nas"
144 ethernet_port_name: "SP A 4-Port Card Ethernet Port 0"
145 role: "PRODUCTION"
146 interface_ip: "xx.xx.xx.xx"
147 netmask: "xx.xx.xx.xx"
148 gateway: "xx.xx.xx.xx"
149 vlan_id: 324
150 state: "present"
151
152 - name: Get interface details
153 interface:
154 unispherehost: "{{unispherehost}}"
155 username: "{{username}}"
156 password: "{{password}}"
157 validate_certs: "{{validate_certs}}"
158 nas_server_name: "dummy_nas"
159 interface_ip: "xx.xx.xx.xx"
160 state: "present"
161
162 - name: Delete Interface
163 interface:
164 unispherehost: "{{unispherehost}}"
165 username: "{{username}}"
166 password: "{{password}}"
167 validate_certs: "{{validate_certs}}"
168 nas_server_name: "dummy_nas"
169 interface_ip: "xx.xx.xx.xx"
170 state: "absent"
171
172
173
174 Return Values
175 -------------
176
177 changed (always, bool, True)
178 Whether or not the resource has changed.
179
180
181 interface_details (When interface is configured for NAS Server., dict, {'existed': True, 'gateway': 'xx.xx.xx.xx', 'hash': 8785300560421, 'health': {'UnityHealth': {'hash': 8785300565468}}, 'id': 'if_69', 'ip_address': '10.10.10.10', 'ip_port': {'UnityIpPort': {'hash': 8785300565300, 'id': 'spb_ocp_0_eth0'}}, 'ip_protocol_version': 'IpProtocolVersionEnum.IPv4', 'is_disabled': False, 'is_preferred': True, 'mac_address': '0C:48:C6:9F:57:BF', 'name': '36_APM00213404194', 'nas_server': {'UnityNasServer': {'hash': 8785300565417, 'id': 'nas_10'}}, 'netmask': '10.10.10.10', 'replication_policy': None, 'role': 'FileInterfaceRoleEnum.PRODUCTION', 'source_parameters': None, 'v6_prefix_length': None, 'vlan_id': 324})
182 Details of the interface.
183
184
185 existed (, bool, )
186 Indicates if interface exists.
187
188
189 gateway (, str, )
190 Gateway of network interface.
191
192
193 id (, str, )
194 Unique identifier interface.
195
196
197 ip_address (, str, )
198 IP address of interface.
199
200
201 ip_port (, dict, )
202 Port on which network interface is configured.
203
204
205 id (, str, )
206 ID of ip_port.
207
208
209
210 ip_protocol_version (, str, )
211 IP protocol version.
212
213
214 is_disabled (, bool, )
215 Indicates whether interface is disabled.
216
217
218 is_preferred (, bool, )
219 Indicates whether interface is preferred.
220
221
222 mac_address (, bool, )
223 Mac address of ip_port.
224
225
226 name (, bool, )
227 System configured name of interface.
228
229
230 nas_server (, dict, )
231 Details of NAS server where interface is configured.
232
233
234 id (, str, )
235 ID of NAS Server.
236
237
238
239
240
241
242
243 Status
244 ------
245
246
247
248
249
250 Authors
251 ~~~~~~~
252
253 - Meenakshi Dembi (@dembim) <[email protected]>
254