Debian Codegraph @

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

raw
1 .. _idrac_network_attributes_module:
2
3
4 idrac_network_attributes -- Configures the iDRAC network attributes
5 ===================================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 This module allows you to configure the port and partition network attributes on the network interface cards.
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 network_adapter_id (True, str, None)
31 FQDD of the network adapter device that represents the physical network adapter capable of connecting to a computer network.
32
33 An example of FQDD of the network adapter is 'NIC.Mezzanine.1A'
34
35
36 network_device_function_id (True, str, None)
37 FQDD of the network adapter device function that represents a logical interface exposed by the network adapter.
38
39 An example of FQDD of the network adapter device function is 'NIC.Mezzanine.1A-1-1'
40
41
42 network_attributes (optional, dict, None)
43 Dictionary of network attributes and value. To view the list of attributes and its structure, see the below API \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Systems/System.Embedded.1/NetworkAdapters/\<network\_adapter\_id\>/NetworkDeviceFunctions/ \<network\_device\_function\_id\>/Settings) and \ `https://\<idrac\_ip\>/redfish/v1/Schemas/NetworkDeviceFunction.v1\_8\_0.json <https://%3Cidrac_ip%3E/redfish/v1/Schemas/NetworkDeviceFunction.v1_8_0.json>`__.
44
45 :emphasis:`network\_attributes` is mutually exclusive with :emphasis:`oem\_network\_attributes`.
46
47
48 oem_network_attributes (optional, dict, None)
49 The attributes must be part of the Integrated Dell Remote Access Controller Attribute Registry. To view the list of attributes in Attribute Registry for iDRAC9 and newer versions. For more information, see, \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Chassis/System.Embedded.1/NetworkAdapters/\<network\_adapter\_id\>/NetworkDeviceFunctions/ \<network\_device\_function\_id\>/Oem/Dell/DellNetworkAttributes/\<network\_device\_function\_id\>) and \ `https://I(idrac\_ip <https://I(idrac_ip>`__\ /redfish/v1/Registries/NetworkAttributesRegistry\_\<network\_device\_function\_id\>/ NetworkAttributesRegistry\_network\_port\_id.json).
50
51 For iDRAC8 based servers, derive the network attribute name from Server Configuration Profile.
52
53 :emphasis:`oem\_network\_attributes` is mutually exclusive with :emphasis:`network\_attributes`.
54
55
56 resource_id (optional, str, None)
57 Id of the resource.
58
59 If the value for resource ID is not provided, the module picks the first resource ID available from the list of system resources returned by the iDRAC.
60
61
62 clear_pending (optional, bool, False)
63 This parameter allows you to clear all the pending OEM network attributes changes.
64
65 :literal:`false` does not perform any operation.
66
67 :literal:`true` discards any pending changes to network attributes, or if a job is in scheduled state, removes the job.
68
69 :emphasis:`apply\_time` value will be ignored and will not have any impact for :emphasis:`clear\_pending` operation.
70
71 This operation is not supported for iDRAC8.
72
73
74 apply_time (True, str, None)
75 Apply time of the :emphasis:`network\_attributes` and :emphasis:`oem\_network\_attributes`.
76
77 This is applicable only to :emphasis:`network\_attributes` and :emphasis:`oem\_network\_attributes`.
78
79 :literal:`Immediate` allows the user to immediately reboot the host and apply the changes. :emphasis:`job\_wait` is applicable. This is applicable for :emphasis:`oem\_network\_attributes` and :emphasis:`job\_wait`.
80
81 :literal:`OnReset` allows the user to apply the changes on the next reboot of the host server.
82
83 :literal:`AtMaintenanceWindowStart` allows the user to apply at the start of a maintenance window as specified in :emphasis:`maintenance\_window`. A reboot job is scheduled.
84
85 :literal:`InMaintenanceWindowOnReset` allows to apply after a manual reset but within the maintenance window as specified in :emphasis:`maintenance\_window`.
86
87 This is not applicable for iDRAC8 and value will be ignored and will not have any impact for configuring :emphasis:`oem\_network\_attributes`.
88
89 For iDRAC10, only :literal:`OnReset` is supported.
90
91
92 maintenance_window (optional, dict, None)
93 This option allows you to schedule the maintenance window.
94
95 This is required when :emphasis:`apply\_time` is :literal:`AtMaintenanceWindowStart` or :literal:`InMaintenanceWindowOnReset`.
96
97
98 start_time (True, str, None)
99 The start time for the maintenance window to be scheduled.
100
101 The format is YYYY-MM-DDThh:mm:ss\<offset\>
102
103 \<offset\> is the time offset from UTC that the current timezone set in iDRAC in the format: +05:30 for IST.
104
105
106 duration (True, int, None)
107 The duration in seconds for the maintenance window.
108
109
110
111 job_wait (optional, bool, True)
112 Provides the option to wait for job completion.
113
114 This is applicable when :emphasis:`apply\_time` is :literal:`Immediate` for :emphasis:`oem\_network\_attributes`.
115
116
117 job_wait_timeout (optional, int, 1200)
118 The maximum wait time of :emphasis:`job\_wait` in seconds. The job is tracked only for this duration.
119
120 This option is applicable when :emphasis:`job\_wait` is :literal:`true`.
121
122
123 idrac_ip (True, str, None)
124 iDRAC IP Address.
125
126
127 idrac_user (False, str, None)
128 iDRAC username.
129
130 If the username is not provided, then the environment variable :envvar:`IDRAC\_USERNAME` is used.
131
132 Example: export IDRAC\_USERNAME=username
133
134
135 idrac_password (False, str, None)
136 iDRAC user password.
137
138 If the password is not provided, then the environment variable :envvar:`IDRAC\_PASSWORD` is used.
139
140 Example: export IDRAC\_PASSWORD=password
141
142
143 x_auth_token (False, str, None)
144 Authentication token.
145
146 If the x\_auth\_token is not provided, then the environment variable :envvar:`IDRAC\_X\_AUTH\_TOKEN` is used.
147
148 Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token
149
150
151 idrac_port (optional, int, 443)
152 iDRAC port.
153
154
155 validate_certs (optional, bool, True)
156 If :literal:`false`\ , the SSL certificates will not be validated.
157
158 Configure :literal:`false` only on personally controlled sites where self-signed certificates are used.
159
160 Prior to collection version :literal:`5.0.0`\ , the :emphasis:`validate\_certs` is :literal:`false` by default.
161
162
163 ca_path (optional, path, None)
164 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
165
166
167 timeout (optional, int, 30)
168 The socket level timeout in seconds.
169
170
171
172
173
174 Notes
175 -----
176
177 .. note::
178 - Run this module from a system that has direct access to Dell iDRAC.
179 - This module supports both IPv4 and IPv6 address.
180 - This module supports :literal:`check\_mode`.
181
182
183
184
185 Examples
186 --------
187
188 .. code-block:: yaml+jinja
189
190
191 ---
192 - name: Configure OEM network attributes
193 dellemc.openmanage.idrac_network_attributes:
194 idrac_ip: "192.168.0.1"
195 idrac_user: "user_name"
196 idrac_password: "user_password"
197 network_adapter_id: "NIC.Integrated.1"
198 network_device_function_id: "NIC.Integrated.1-1-1"
199 apply_time: "Immediate"
200 oem_network_attributes:
201 BannerMessageTimeout: "4"
202
203 - name: Configure OEM network attributes to apply on reset
204 dellemc.openmanage.idrac_network_attributes:
205 idrac_ip: "192.168.0.1"
206 idrac_user: "user_name"
207 idrac_password: "user_password"
208 network_adapter_id: NIC.Integrated.1
209 network_device_function_id: "NIC.Integrated.1-1-1"
210 oem_network_attributes:
211 BannerMessageTimeout: "4"
212 apply_time: OnReset
213
214 - name: Configure OEM network attributes to apply at maintainance window
215 dellemc.openmanage.idrac_network_attributes:
216 idrac_ip: "192.168.0.1"
217 idrac_user: "user_name"
218 idrac_password: "user_password"
219 network_adapter_id: NIC.Integrated.1
220 network_device_function_id: "NIC.Integrated.1-1-1"
221 oem_network_attributes:
222 BannerMessageTimeout: "4"
223 apply_time: AtMaintenanceWindowStart
224 maintenance_window:
225 start_time: "2022-09-30T05:15:40-05:00"
226 duration: 600
227
228 - name: Clearing the pending attributes
229 dellemc.openmanage.idrac_network_attributes:
230 idrac_ip: "192.168.0.1"
231 idrac_user: "user_name"
232 idrac_password: "user_password"
233 network_adapter_id: NIC.Integrated.1
234 network_device_function_id: "NIC.Integrated.1-1-1"
235 apply_time: "Immediate"
236 clear_pending: true
237
238 - name: Clearing the OEM pending attributes and apply the OEM network attributes
239 dellemc.openmanage.idrac_network_attributes:
240 idrac_ip: "192.168.0.1"
241 idrac_user: "user_name"
242 idrac_password: "user_password"
243 network_adapter_id: NIC.Integrated.1
244 network_device_function_id: "NIC.Integrated.1-1-1"
245 apply_time: "Immediate"
246 clear_pending: true
247 oem_network_attributes:
248 BannerMessageTimeout: "4"
249
250 - name: Configure OEM network attributes and wait for the job
251 dellemc.openmanage.idrac_network_attributes:
252 idrac_ip: "192.168.0.1"
253 idrac_user: "user_name"
254 idrac_password: "user_password"
255 network_adapter_id: NIC.Integrated.1
256 network_device_function_id: "NIC.Integrated.1-1-1"
257 apply_time: "Immediate"
258 oem_network_attributes:
259 LnkSpeed: "10MbpsHalf"
260 WakeOnLan: "Enabled"
261 VLanMode: "Enabled"
262 job_wait: true
263 job_wait_timeout: 2000
264
265 - name: Configure redfish network attributes to update fiber channel on reset
266 dellemc.openmanage.idrac_network_attributes:
267 idrac_ip: "192.168.0.1"
268 idrac_user: "user_name"
269 idrac_password: "user_password"
270 network_adapter_id: NIC.Integrated.1
271 network_device_function_id: "NIC.Integrated.1-1-1"
272 apply_time: OnReset
273 network_attributes:
274 Ethernet:
275 VLAN:
276 VLANEnable: true
277
278 - name: Configure redfish network attributes to apply on reset
279 dellemc.openmanage.idrac_network_attributes:
280 idrac_ip: "192.168.0.1"
281 idrac_user: "user_name"
282 idrac_password: "user_password"
283 network_adapter_id: NIC.Integrated.1
284 network_device_function_id: "NIC.Integrated.1-1-1"
285 network_attributes:
286 Ethernet:
287 VLAN:
288 VLANEnable: true
289 apply_time: OnReset
290
291 - name: Configure redfish network attributes of iscsi to apply at maintainance window start
292 dellemc.openmanage.idrac_network_attributes:
293 idrac_ip: "192.168.0.1"
294 idrac_user: "user_name"
295 idrac_password: "user_password"
296 network_adapter_id: NIC.Integrated.1
297 network_device_function_id: "NIC.Integrated.1-1-1"
298 network_attributes:
299 iSCSIBoot:
300 InitiatorIPAddress: 1.0.0.1
301 apply_time: AtMaintenanceWindowStart
302 maintenance_window:
303 start_time: "2022-09-30T05:15:40-05:00"
304 duration: 600
305
306 - name: Configure redfish network attributes to apply at maintainance window on reset
307 dellemc.openmanage.idrac_network_attributes:
308 idrac_ip: "192.168.0.1"
309 idrac_user: "user_name"
310 idrac_password: "user_password"
311 network_adapter_id: NIC.Integrated.1
312 network_device_function_id: "NIC.Integrated.1-1-1"
313 network_attributes:
314 Ethernet:
315 VLAN:
316 VLANEnable: false
317 VLANId: 1
318 apply_time: AtMaintenanceWindowStart
319 maintenance_window:
320 start_time: "2022-09-30T05:15:40-05:00"
321 duration: 600
322
323
324
325 Return Values
326 -------------
327
328 msg (when network attributes is applied, str, Successfully updated the network attributes.)
329 Status of the attribute update operation.
330
331
332 invalid_attributes (On invalid attributes or values, dict, {'IscsiInitiatorIpAddr': 'Attribute is not valid.', 'IscsiInitiatorSubnet': 'Attribute is not valid.'})
333 Dictionary of invalid attributes provided that cannot be applied.
334
335
336 job_status (always, dict, {'ActualRunningStartTime': None, 'ActualRunningStopTime': None, 'CompletionTime': None, 'Description': 'Job Instance', 'EndTime': 'TIME_NA', 'Id': 'JID_XXXXXXXXX', 'JobState': 'Scheduled', 'JobType': 'NICConfiguration', 'Message': 'Task successfully scheduled.', 'MessageArgs': [], 'MessageId': 'JCP001', 'Name': 'Configure: NIC.Integrated.1-1-1', 'PercentComplete': 0, 'StartTime': '2023-08-07T06:21:24', 'TargetSettingsURI': None})
337 Returns the output for status of the job.
338
339
340 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': 'GEN1234', 'RelatedProperties': [], 'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'Severity': 'Critical', 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.'}]}})
341 Details of the HTTP Error.
342
343
344
345
346
347 Status
348 ------
349
350
351
352
353
354 Authors
355 ~~~~~~~
356
357 - Abhishek Sinha(@ABHISHEK-SINHA10)
358 - Kritika Bhateja (@Kritika-Bhateja-03)
359