Debian Codegraph @

ansible_collections/dellemc/openmanage/docs/modules/ome_smart_fabric_uplink.rst

raw
1 .. _ome_smart_fabric_uplink_module:
2
3
4 ome_smart_fabric_uplink -- Create, modify or delete a uplink for a fabric on OpenManage Enterprise Modular
5 ==========================================================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows to create, modify or delete an uplink for a fabric.
16
17
18
19 Requirements
20 ------------
21 The below requirements are needed on the host that executes this module.
22
23 - python \>= 3.9.6
24
25
26
27 Parameters
28 ----------
29
30 state (optional, str, present)
31 \ :literal:`present`\ - Creates a new uplink with the provided \ :emphasis:`name`\ . - Modifies an existing uplink with the provided \ :emphasis:`name`\ .
32
33 \ :literal:`absent`\ – Deletes the uplink with the provided \ :emphasis:`name`\ .
34
35 \ :emphasis:`WARNING`\ Delete operation can impact the network infrastructure.
36
37
38 fabric_name (True, str, None)
39 Provide the \ :emphasis:`fabric\_name`\ of the fabric for which the uplink is to be configured.
40
41
42 name (True, str, None)
43 Provide the \ :emphasis:`name`\ of the uplink to be created, modified or deleted.
44
45
46 new_name (optional, str, None)
47 Provide the new \ :emphasis:`new\_name`\ for the uplink.
48
49
50 description (optional, str, None)
51 Provide a short description for the uplink to be created or modified.
52
53
54 uplink_type (optional, str, None)
55 Specify the uplink type.
56
57 \ :emphasis:`NOTE`\ The uplink type cannot be changed for an existing uplink.
58
59
60 ufd_enable (optional, str, None)
61 Add or Remove the uplink to the Uplink Failure Detection (UFD) group. The UFD group identifies the loss of connectivity to the upstream switch and notifies the servers that are connected to the switch. During an uplink failure, the switch disables the corresponding downstream server ports. The downstream servers can then select alternate connectivity routes, if available.
62
63 \ :emphasis:`WARNING`\ The firmware version of the I/O Module running the Fabric Manager must support this configuration feature. If not, uplink creation will be successful with an appropriate error message in response.
64
65
66 primary_switch_service_tag (optional, str, None)
67 Service tag of the primary switch.
68
69
70 primary_switch_ports (optional, list, None)
71 The IOM slots to be connected to the primary switch.
72
73 \ :emphasis:`primary\_switch\_service\_tag`\ is mandatory for this option.
74
75
76 secondary_switch_service_tag (optional, str, None)
77 Service tag of the secondary switch.
78
79
80 secondary_switch_ports (optional, list, None)
81 The IOM slots to be connected to the secondary switch.
82
83 \ :emphasis:`secondary\_switch\_service\_tag`\ is mandatory for this option.
84
85
86 tagged_networks (optional, list, None)
87 VLANs to be associated with the uplink \ :emphasis:`name`\ .
88
89
90 untagged_network (optional, str, None)
91 Specify the name of the VLAN to be added as untagged to the uplink.
92
93
94 hostname (True, str, None)
95 OpenManage Enterprise Modular IP address or hostname.
96
97
98 username (False, str, None)
99 OpenManage Enterprise Modular username.
100
101 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
102
103 Example: export OME\_USERNAME=username
104
105
106 password (False, str, None)
107 OpenManage Enterprise Modular password.
108
109 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
110
111 Example: export OME\_PASSWORD=password
112
113
114 x_auth_token (False, str, None)
115 Authentication token.
116
117 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
118
119 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
120
121
122 port (optional, int, 443)
123 OpenManage Enterprise Modular HTTPS port.
124
125
126 validate_certs (optional, bool, True)
127 If \ :literal:`false`\ , the SSL certificates will not be validated.
128
129 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
130
131 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
132
133
134 ca_path (optional, path, None)
135 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
136
137
138 timeout (optional, int, 30)
139 The socket level timeout in seconds.
140
141
142
143
144
145 Notes
146 -----
147
148 .. note::
149 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
150 - This module supports \ :literal:`check\_mode`\ .
151
152
153
154
155 Examples
156 --------
157
158 .. code-block:: yaml+jinja
159
160
161 ---
162 - name: Create an Uplink
163 dellemc.openmanage.ome_smart_fabric_uplink:
164 hostname: "192.168.0.1"
165 username: "username"
166 password: "password"
167 ca_path: "/path/to/ca_cert.pem"
168 state: "present"
169 fabric_name: "fabric1"
170 name: "uplink1"
171 description: "CREATED from OMAM"
172 uplink_type: "Ethernet"
173 ufd_enable: "Enabled"
174 primary_switch_service_tag: "ABC1234"
175 primary_switch_ports:
176 - ethernet1/1/13
177 - ethernet1/1/14
178 secondary_switch_service_tag: "XYZ1234"
179 secondary_switch_ports:
180 - ethernet1/1/13
181 - ethernet1/1/14
182 tagged_networks:
183 - vlan1
184 - vlan3
185 untagged_network: vlan2
186 tags: create_uplink
187
188 - name: Modify an existing uplink
189 dellemc.openmanage.ome_smart_fabric_uplink:
190 hostname: "192.168.0.1"
191 username: "username"
192 password: "password"
193 ca_path: "/path/to/ca_cert.pem"
194 state: "present"
195 fabric_name: "fabric1"
196 name: "uplink1"
197 new_name: "uplink2"
198 description: "Modified from OMAM"
199 uplink_type: "Ethernet"
200 ufd_enable: "Disabled"
201 primary_switch_service_tag: "DEF1234"
202 primary_switch_ports:
203 - ethernet1/2/13
204 - ethernet1/2/14
205 secondary_switch_service_tag: "TUV1234"
206 secondary_switch_ports:
207 - ethernet1/2/13
208 - ethernet1/2/14
209 tagged_networks:
210 - vlan11
211 - vlan33
212 untagged_network: vlan22
213 tags: modify_uplink
214
215 - name: Delete an Uplink
216 dellemc.openmanage.ome_smart_fabric_uplink:
217 hostname: "192.168.0.1"
218 username: "username"
219 password: "password"
220 ca_path: "/path/to/ca_cert.pem"
221 state: "absent"
222 fabric_name: "fabric1"
223 name: "uplink1"
224 tags: delete_uplink
225
226 - name: Modify an Uplink name
227 dellemc.openmanage.ome_smart_fabric_uplink:
228 hostname: "192.168.0.1"
229 username: "username"
230 password: "password"
231 ca_path: "/path/to/ca_cert.pem"
232 state: "present"
233 fabric_name: "fabric1"
234 name: "uplink1"
235 new_name: "uplink2"
236 tags: modify_uplink_name
237
238 - name: Modify Uplink ports
239 dellemc.openmanage.ome_smart_fabric_uplink:
240 hostname: "192.168.0.1"
241 username: "username"
242 password: "password"
243 ca_path: "/path/to/ca_cert.pem"
244 state: "present"
245 fabric_name: "fabric1"
246 name: "uplink1"
247 description: "uplink ports modified"
248 primary_switch_service_tag: "ABC1234"
249 primary_switch_ports:
250 - ethernet1/1/6
251 - ethernet1/1/7
252 secondary_switch_service_tag: "XYZ1234"
253 secondary_switch_ports:
254 - ethernet1/1/9
255 - ethernet1/1/10
256 tags: modify_ports
257
258 - name: Modify Uplink networks
259 dellemc.openmanage.ome_smart_fabric_uplink:
260 hostname: "192.168.0.1"
261 username: "username"
262 password: "password"
263 ca_path: "/path/to/ca_cert.pem"
264 state: "present"
265 fabric_name: "fabric1"
266 name: "create1"
267 description: "uplink networks modified"
268 tagged_networks:
269 - vlan4
270 tags: modify_networks
271
272
273
274 Return Values
275 -------------
276
277 msg (always, str, Successfully modified the uplink.)
278 Overall status of the uplink operation.
279
280
281 uplink_id (when I(state=present), str, ddc3d260-fd71-46a1-97f9-708e12345678)
282 Returns the ID when an uplink is created or modified.
283
284
285 additional_info (when I(state=present) and additional information present in response., dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to configure the Uplink Failure Detection mode on the uplink because the firmware version of the I/O Module running the Fabric Manager does not support the configuration feature.', 'MessageArgs': [], 'MessageId': 'CDEV7151', 'RelatedProperties': [], 'Resolution': "Update the firmware version of the I/O Module running the Fabric Manager and retry the operation. For information about the recommended I/O Module firmware versions, see the OpenManage Enterprise-Modular User's Guide available on the support site.", 'Severity': 'Informational'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}})
286 Additional details of the fabric operation.
287
288
289 error_info (on HTTP error, dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'MessageId': 'CGEN1006', 'RelatedProperties': [], 'Message': 'Unable to complete the request because the resource URI does not exist or is not implemented.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': "Check the request resource URI. Refer to the OpenManage Enterprise-Modular User's Guide for more information about resource URI and its properties."}]}})
290 Details of the HTTP Error.
291
292
293
294
295
296 Status
297 ------
298
299
300
301
302
303 Authors
304 ~~~~~~~
305
306 - Jagadeesh N V(@jagadeeshnv)
307