| 1 |
.. _ome_device_mgmt_network_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_device_mgmt_network -- Configure network settings of devices on OpenManage Enterprise Modular |
| 5 |
================================================================================================= |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows to configure network settings on Chassis, Servers, and I/O Modules on OpenManage Enterprise Modular. |
| 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 |
device_service_tag (optional, str, None) |
| 31 |
Service tag of the device. |
| 32 |
|
| 33 |
This option is mutually exclusive with \ :emphasis:`device\_id`\ . |
| 34 |
|
| 35 |
|
| 36 |
device_id (optional, int, None) |
| 37 |
ID of the device. |
| 38 |
|
| 39 |
This option is mutually exclusive with \ :emphasis:`device\_service\_tag`\ . |
| 40 |
|
| 41 |
|
| 42 |
enable_nic (optional, bool, True) |
| 43 |
Enable or disable Network Interface Card (NIC) configuration of the device. |
| 44 |
|
| 45 |
This option is not applicable to I/O Module. |
| 46 |
|
| 47 |
|
| 48 |
delay (optional, int, 0) |
| 49 |
The time in seconds, after which settings are applied. |
| 50 |
|
| 51 |
This option is applicable only for Chassis. |
| 52 |
|
| 53 |
|
| 54 |
ipv4_configuration (optional, dict, None) |
| 55 |
IPv4 network configuration. |
| 56 |
|
| 57 |
\ :literal:`WARNING`\ Ensure that you have an alternate interface to access OpenManage Enterprise Modular because these options can change the current IPv4 address for \ :emphasis:`hostname`\ . |
| 58 |
|
| 59 |
|
| 60 |
enable_ipv4 (True, bool, None) |
| 61 |
Enable or disable access to the network using IPv4. |
| 62 |
|
| 63 |
|
| 64 |
enable_dhcp (optional, bool, None) |
| 65 |
Enable or disable the automatic request to obtain an IPv4 address from the IPv4 Dynamic Host Configuration Protocol (DHCP) server. |
| 66 |
|
| 67 |
\ :literal:`NOTE`\ If this option is \ :literal:`true`\ , the values provided for \ :emphasis:`static\_ip\_address`\ , \ :emphasis:`static\_subnet\_mask`\ , and \ :emphasis:`static\_gateway`\ are not applied for these fields. However, the module may report changes. |
| 68 |
|
| 69 |
|
| 70 |
static_ip_address (optional, str, None) |
| 71 |
Static IPv4 address. |
| 72 |
|
| 73 |
This option is applicable when \ :emphasis:`enable\_dhcp`\ is false. |
| 74 |
|
| 75 |
|
| 76 |
static_subnet_mask (optional, str, None) |
| 77 |
Static IPv4 subnet mask address. |
| 78 |
|
| 79 |
This option is applicable when \ :emphasis:`enable\_dhcp`\ is false. |
| 80 |
|
| 81 |
|
| 82 |
static_gateway (optional, str, None) |
| 83 |
Static IPv4 gateway address. |
| 84 |
|
| 85 |
This option is applicable when \ :emphasis:`enable\_dhcp`\ is false. |
| 86 |
|
| 87 |
|
| 88 |
use_dhcp_to_obtain_dns_server_address (optional, bool, None) |
| 89 |
This option allows to automatically request and obtain IPv4 address for the DNS Server from the DHCP server. |
| 90 |
|
| 91 |
This option is applicable when \ :emphasis:`enable\_dhcp`\ is true. |
| 92 |
|
| 93 |
\ :literal:`NOTE`\ If this option is \ :literal:`true`\ , the values provided for \ :emphasis:`static\_preferred\_dns\_server`\ and \ :emphasis:`static\_alternate\_dns\_server`\ are not applied for these fields. However, the module may report changes. |
| 94 |
|
| 95 |
|
| 96 |
static_preferred_dns_server (optional, str, None) |
| 97 |
Static IPv4 DNS preferred server. |
| 98 |
|
| 99 |
This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false. |
| 100 |
|
| 101 |
|
| 102 |
static_alternate_dns_server (optional, str, None) |
| 103 |
Static IPv4 DNS alternate server. |
| 104 |
|
| 105 |
This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false. |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
ipv6_configuration (optional, dict, None) |
| 110 |
IPv6 network configuration. |
| 111 |
|
| 112 |
\ :literal:`WARNING`\ Ensure that you have an alternate interface to access OpenManage Enterprise Modular because these options can change the current IPv6 address for \ :emphasis:`hostname`\ . |
| 113 |
|
| 114 |
|
| 115 |
enable_ipv6 (True, bool, None) |
| 116 |
Enable or disable access to the network using the IPv6. |
| 117 |
|
| 118 |
|
| 119 |
enable_auto_configuration (optional, bool, None) |
| 120 |
Enable or disable the automatic request to obtain an IPv6 address from the IPv6 DHCP server or router advertisements(RA). |
| 121 |
|
| 122 |
If \ :emphasis:`enable\_auto\_configuration`\ is \ :literal:`true`\ , OpenManage Enterprise Modular retrieves IP configuration (IPv6 address, prefix, and gateway address) from a DHCPv6 server on the existing network. |
| 123 |
|
| 124 |
\ :literal:`NOTE`\ If this option is \ :literal:`true`\ , the values provided for \ :emphasis:`static\_ip\_address`\ , \ :emphasis:`static\_prefix\_length`\ , and \ :emphasis:`static\_gateway`\ are not applied for these fields. However, the module may report changes. |
| 125 |
|
| 126 |
|
| 127 |
static_ip_address (optional, str, None) |
| 128 |
Static IPv6 address. |
| 129 |
|
| 130 |
This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false. |
| 131 |
|
| 132 |
|
| 133 |
static_prefix_length (optional, int, None) |
| 134 |
Static IPv6 prefix length. |
| 135 |
|
| 136 |
This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false. |
| 137 |
|
| 138 |
|
| 139 |
static_gateway (optional, str, None) |
| 140 |
Static IPv6 gateway address. |
| 141 |
|
| 142 |
This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is false. |
| 143 |
|
| 144 |
|
| 145 |
use_dhcpv6_to_obtain_dns_server_address (optional, bool, None) |
| 146 |
This option allows to automatically request and obtain a IPv6 address for the DNS server from the DHCP server. |
| 147 |
|
| 148 |
This option is applicable when \ :emphasis:`enable\_auto\_configuration`\ is true. |
| 149 |
|
| 150 |
\ :literal:`NOTE`\ If this option is \ :literal:`true`\ , the values provided for \ :emphasis:`static\_preferred\_dns\_server`\ and \ :emphasis:`static\_alternate\_dns\_server`\ are not applied for these fields. However, the module may report changes. |
| 151 |
|
| 152 |
|
| 153 |
static_preferred_dns_server (optional, str, None) |
| 154 |
Static IPv6 DNS preferred server. |
| 155 |
|
| 156 |
This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false. |
| 157 |
|
| 158 |
|
| 159 |
static_alternate_dns_server (optional, str, None) |
| 160 |
Static IPv6 DNS alternate server. |
| 161 |
|
| 162 |
This option is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_server\_names`\ is false. |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
management_vlan (optional, dict, None) |
| 167 |
VLAN configuration. |
| 168 |
|
| 169 |
|
| 170 |
enable_vlan (True, bool, None) |
| 171 |
Enable or disable VLAN for management. |
| 172 |
|
| 173 |
The VLAN configuration cannot be updated if the \ :emphasis:`register\_with\_dns`\ field under \ :emphasis:`dns\_configuration`\ is true. |
| 174 |
|
| 175 |
\ :literal:`WARNING`\ Ensure that the network cable is connected to the correct port after the VLAN configuration is changed. If not, the VLAN configuration changes may not be applied. |
| 176 |
|
| 177 |
|
| 178 |
vlan_id (optional, int, None) |
| 179 |
VLAN ID. |
| 180 |
|
| 181 |
The valid VLAN IDs are: 1 to 4000, and 4021 to 4094. |
| 182 |
|
| 183 |
This option is applicable when \ :emphasis:`enable\_vlan`\ is true. |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
dns_configuration (optional, dict, None) |
| 188 |
Domain Name System(DNS) settings. |
| 189 |
|
| 190 |
|
| 191 |
register_with_dns (optional, bool, None) |
| 192 |
Register/Unregister \ :emphasis:`dns\_name`\ on the DNS Server. |
| 193 |
|
| 194 |
\ :literal:`WARNING`\ This option cannot be updated if VLAN configuration changes. |
| 195 |
|
| 196 |
|
| 197 |
use_dhcp_for_dns_domain_name (optional, bool, None) |
| 198 |
Get the \ :emphasis:`dns\_domain\_name`\ using a DHCP server. |
| 199 |
|
| 200 |
|
| 201 |
dns_name (optional, str, None) |
| 202 |
DNS name for \ :emphasis:`hostname`\ . |
| 203 |
|
| 204 |
This is applicable when \ :emphasis:`register\_with\_dns`\ is true. |
| 205 |
|
| 206 |
|
| 207 |
dns_domain_name (optional, str, None) |
| 208 |
Static DNS domain name. |
| 209 |
|
| 210 |
This is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_domain\_name`\ is false. |
| 211 |
|
| 212 |
|
| 213 |
auto_negotiation (optional, bool, None) |
| 214 |
Enables or disables the auto negation of the network speed. |
| 215 |
|
| 216 |
\ :literal:`NOTE`\ : Setting \ :emphasis:`auto\_negotiation`\ to false and choosing a network port speed may result in the chassis loosing link to the top of rack network switch, or to the neighboring chassis in case of MCM mode. It is recommended that the \ :emphasis:`auto\_negotiation`\ is set to \ :literal:`true`\ for most use cases. |
| 217 |
|
| 218 |
This is applicable when \ :emphasis:`use\_dhcp\_for\_dns\_domain\_name`\ is false. |
| 219 |
|
| 220 |
This is applicable only for Chassis. |
| 221 |
|
| 222 |
|
| 223 |
network_speed (optional, str, None) |
| 224 |
The speed of the network port. |
| 225 |
|
| 226 |
This is applicable when \ :emphasis:`auto\_negotiation`\ is false. |
| 227 |
|
| 228 |
\ :literal:`10\_MB`\ to select network speed of 10 MB. |
| 229 |
|
| 230 |
\ :literal:`100\_MB`\ to select network speed of 100 MB. |
| 231 |
|
| 232 |
This is applicable only for Chassis. |
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
dns_server_settings (optional, dict, None) |
| 237 |
DNS server settings. |
| 238 |
|
| 239 |
This is applicable only for I/O Module. |
| 240 |
|
| 241 |
|
| 242 |
preferred_dns_server (optional, str, None) |
| 243 |
Enter the IP address of the preferred DNS server. |
| 244 |
|
| 245 |
|
| 246 |
alternate_dns_server1 (optional, str, None) |
| 247 |
Enter the IP address of the first alternate DNS server. |
| 248 |
|
| 249 |
|
| 250 |
alternate_dns_server2 (optional, str, None) |
| 251 |
Enter the IP address of the second alternate DNS server. |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
hostname (True, str, None) |
| 256 |
OpenManage Enterprise Modular IP address or hostname. |
| 257 |
|
| 258 |
|
| 259 |
username (False, str, None) |
| 260 |
OpenManage Enterprise Modular username. |
| 261 |
|
| 262 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 263 |
|
| 264 |
Example: export OME\_USERNAME=username |
| 265 |
|
| 266 |
|
| 267 |
password (False, str, None) |
| 268 |
OpenManage Enterprise Modular password. |
| 269 |
|
| 270 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 271 |
|
| 272 |
Example: export OME\_PASSWORD=password |
| 273 |
|
| 274 |
|
| 275 |
x_auth_token (False, str, None) |
| 276 |
Authentication token. |
| 277 |
|
| 278 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 279 |
|
| 280 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 281 |
|
| 282 |
|
| 283 |
port (optional, int, 443) |
| 284 |
OpenManage Enterprise Modular HTTPS port. |
| 285 |
|
| 286 |
|
| 287 |
validate_certs (optional, bool, True) |
| 288 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 289 |
|
| 290 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 291 |
|
| 292 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 293 |
|
| 294 |
|
| 295 |
ca_path (optional, path, None) |
| 296 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 297 |
|
| 298 |
|
| 299 |
timeout (optional, int, 30) |
| 300 |
The socket level timeout in seconds. |
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
Notes |
| 307 |
----- |
| 308 |
|
| 309 |
.. note:: |
| 310 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise Modular. |
| 311 |
- This module supports \ :literal:`check\_mode`\ . |
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
Examples |
| 317 |
-------- |
| 318 |
|
| 319 |
.. code-block:: yaml+jinja |
| 320 |
|
| 321 |
|
| 322 |
--- |
| 323 |
- name: Network settings for chassis |
| 324 |
dellemc.openmanage.ome_device_mgmt_network: |
| 325 |
hostname: 192.168.0.1 |
| 326 |
username: "username" |
| 327 |
password: "password" |
| 328 |
ca_path: "/path/to/ca_cert.pem" |
| 329 |
device_service_tag: CHAS123 |
| 330 |
ipv4_configuration: |
| 331 |
enable_ipv4: true |
| 332 |
enable_dhcp: false |
| 333 |
static_ip_address: 192.168.0.2 |
| 334 |
static_subnet_mask: 255.255.254.0 |
| 335 |
static_gateway: 192.168.0.3 |
| 336 |
use_dhcp_to_obtain_dns_server_address: false |
| 337 |
static_preferred_dns_server: 192.168.0.4 |
| 338 |
static_alternate_dns_server: 192.168.0.5 |
| 339 |
ipv6_configuration: |
| 340 |
enable_ipv6: true |
| 341 |
enable_auto_configuration: false |
| 342 |
static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1 |
| 343 |
static_prefix_length: 10 |
| 344 |
static_gateway: ffff::2607:f2b1:f081:9 |
| 345 |
use_dhcpv6_to_obtain_dns_server_address: false |
| 346 |
static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3 |
| 347 |
static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4 |
| 348 |
dns_configuration: |
| 349 |
register_with_dns: true |
| 350 |
use_dhcp_for_dns_domain_name: false |
| 351 |
dns_name: "MX-SVCTAG" |
| 352 |
dns_domain_name: "dnslocaldomain" |
| 353 |
auto_negotiation: false |
| 354 |
network_speed: 100_MB |
| 355 |
|
| 356 |
- name: Network settings for server |
| 357 |
dellemc.openmanage.ome_device_mgmt_network: |
| 358 |
hostname: 192.168.0.1 |
| 359 |
username: "username" |
| 360 |
password: "password" |
| 361 |
ca_path: "/path/to/ca_cert.pem" |
| 362 |
device_service_tag: SRVR123 |
| 363 |
ipv4_configuration: |
| 364 |
enable_ipv4: true |
| 365 |
enable_dhcp: false |
| 366 |
static_ip_address: 192.168.0.2 |
| 367 |
static_subnet_mask: 255.255.254.0 |
| 368 |
static_gateway: 192.168.0.3 |
| 369 |
use_dhcp_to_obtain_dns_server_address: false |
| 370 |
static_preferred_dns_server: 192.168.0.4 |
| 371 |
static_alternate_dns_server: 192.168.0.5 |
| 372 |
ipv6_configuration: |
| 373 |
enable_ipv6: true |
| 374 |
enable_auto_configuration: false |
| 375 |
static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1 |
| 376 |
static_prefix_length: 10 |
| 377 |
static_gateway: ffff::2607:f2b1:f081:9 |
| 378 |
use_dhcpv6_to_obtain_dns_server_address: false |
| 379 |
static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3 |
| 380 |
static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4 |
| 381 |
|
| 382 |
- name: Network settings for I/O module |
| 383 |
dellemc.openmanage.ome_device_mgmt_network: |
| 384 |
hostname: 192.168.0.1 |
| 385 |
username: "username" |
| 386 |
password: "password" |
| 387 |
ca_path: "/path/to/ca_cert.pem" |
| 388 |
device_service_tag: IOM1234 |
| 389 |
ipv4_configuration: |
| 390 |
enable_ipv4: true |
| 391 |
enable_dhcp: false |
| 392 |
static_ip_address: 192.168.0.2 |
| 393 |
static_subnet_mask: 255.255.254.0 |
| 394 |
static_gateway: 192.168.0.3 |
| 395 |
ipv6_configuration: |
| 396 |
enable_ipv6: true |
| 397 |
enable_auto_configuration: false |
| 398 |
static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1 |
| 399 |
static_prefix_length: 10 |
| 400 |
static_gateway: ffff::2607:f2b1:f081:9 |
| 401 |
dns_server_settings: |
| 402 |
preferred_dns_server: 192.168.0.4 |
| 403 |
alternate_dns_server1: 192.168.0.5 |
| 404 |
|
| 405 |
- name: Management VLAN configuration of chassis using device id |
| 406 |
dellemc.openmanage.ome_device_mgmt_network: |
| 407 |
hostname: "192.168.0.1" |
| 408 |
username: "username" |
| 409 |
password: "password" |
| 410 |
ca_path: "/path/to/ca_cert.pem" |
| 411 |
device_id: 12345 |
| 412 |
management_vlan: |
| 413 |
enable_vlan: true |
| 414 |
vlan_id: 2345 |
| 415 |
dns_configuration: |
| 416 |
register_with_dns: false |
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
Return Values |
| 421 |
------------- |
| 422 |
|
| 423 |
msg (always, str, Successfully applied the network settings.) |
| 424 |
Overall status of the network config operation. |
| 425 |
|
| 426 |
|
| 427 |
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': 'CGEN1004', 'RelatedProperties': [], 'Message': 'Unable to complete the request because IPV4 Settings Capability is not Supported does not exist or is not applicable for the resource URI.', 'MessageArgs': ['IPV4 Settings Capability is not Supported'], '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."}]}}) |
| 428 |
Details of the HTTP Error. |
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
Status |
| 435 |
------ |
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
Authors |
| 442 |
~~~~~~~ |
| 443 |
|
| 444 |
- Jagadeesh N V(@jagadeeshnv) |
| 445 |
- Bhavneet Sharma (@Bhavneet-Sharma) |
| 446 |
|