| 1 |
.. _ome_smart_fabric_uplink_info_module: |
| 2 |
|
| 3 |
|
| 4 |
ome_smart_fabric_uplink_info -- Retrieve details of fabric uplink on OpenManage Enterprise Modular. |
| 5 |
=================================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module retrieve details of fabric uplink 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 |
fabric_id (optional, str, None) |
| 31 |
Unique id of the fabric. |
| 32 |
|
| 33 |
\ :emphasis:`fabric\_id`\ is mutually exclusive with \ :emphasis:`fabric\_name`\ . |
| 34 |
|
| 35 |
|
| 36 |
fabric_name (optional, str, None) |
| 37 |
Unique name of the fabric. |
| 38 |
|
| 39 |
\ :emphasis:`fabric\_name`\ is mutually exclusive with \ :emphasis:`fabric\_id`\ . |
| 40 |
|
| 41 |
|
| 42 |
uplink_id (optional, str, None) |
| 43 |
Unique id of the uplink. |
| 44 |
|
| 45 |
\ :emphasis:`uplink\_id`\ is mutually exclusive with \ :emphasis:`uplink\_name`\ . |
| 46 |
|
| 47 |
\ :emphasis:`fabric\_id`\ or \ :emphasis:`fabric\_name`\ is required along with \ :emphasis:`uplink\_id`\ . |
| 48 |
|
| 49 |
|
| 50 |
uplink_name (optional, str, None) |
| 51 |
Unique name of the uplink. |
| 52 |
|
| 53 |
\ :emphasis:`uplink\_name`\ is mutually exclusive with \ :emphasis:`uplink\_id`\ . |
| 54 |
|
| 55 |
\ :emphasis:`fabric\_id`\ or \ :emphasis:`fabric\_name`\ is required along with \ :emphasis:`uplink\_name`\ . |
| 56 |
|
| 57 |
|
| 58 |
hostname (True, str, None) |
| 59 |
OpenManage Enterprise Modular IP address or hostname. |
| 60 |
|
| 61 |
|
| 62 |
username (False, str, None) |
| 63 |
OpenManage Enterprise Modular username. |
| 64 |
|
| 65 |
If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used. |
| 66 |
|
| 67 |
Example: export OME\_USERNAME=username |
| 68 |
|
| 69 |
|
| 70 |
password (False, str, None) |
| 71 |
OpenManage Enterprise Modular password. |
| 72 |
|
| 73 |
If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used. |
| 74 |
|
| 75 |
Example: export OME\_PASSWORD=password |
| 76 |
|
| 77 |
|
| 78 |
x_auth_token (False, str, None) |
| 79 |
Authentication token. |
| 80 |
|
| 81 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used. |
| 82 |
|
| 83 |
Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token |
| 84 |
|
| 85 |
|
| 86 |
port (optional, int, 443) |
| 87 |
OpenManage Enterprise Modular HTTPS port. |
| 88 |
|
| 89 |
|
| 90 |
validate_certs (optional, bool, True) |
| 91 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 92 |
|
| 93 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 94 |
|
| 95 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 96 |
|
| 97 |
|
| 98 |
ca_path (optional, path, None) |
| 99 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 100 |
|
| 101 |
|
| 102 |
timeout (optional, int, 30) |
| 103 |
The socket level timeout in seconds. |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
Notes |
| 110 |
----- |
| 111 |
|
| 112 |
.. note:: |
| 113 |
- Run this module from a system that has direct access to Dell OpenManage Enterprise Modular. |
| 114 |
- This module supports \ :literal:`check\_mode`\ . |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
Examples |
| 120 |
-------- |
| 121 |
|
| 122 |
.. code-block:: yaml+jinja |
| 123 |
|
| 124 |
|
| 125 |
--- |
| 126 |
- name: Retrieve all fabric uplink information using fabric_id. |
| 127 |
dellemc.openmanage.ome_smart_fabric_uplink_info: |
| 128 |
hostname: "192.168.0.1" |
| 129 |
username: "username" |
| 130 |
password: "password" |
| 131 |
ca_path: "/path/to/ca_cert.pem" |
| 132 |
fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2" |
| 133 |
|
| 134 |
- name: Retrieve all fabric uplink information using fabric_name. |
| 135 |
dellemc.openmanage.ome_smart_fabric_uplink_info: |
| 136 |
hostname: "192.168.0.1" |
| 137 |
username: "username" |
| 138 |
password: "password" |
| 139 |
ca_path: "/path/to/ca_cert.pem" |
| 140 |
fabric_name: "f1" |
| 141 |
|
| 142 |
- name: Retrieve specific fabric information using uplink_id. |
| 143 |
dellemc.openmanage.ome_smart_fabric_uplink_info: |
| 144 |
hostname: "192.168.0.1" |
| 145 |
username: "username" |
| 146 |
password: "password" |
| 147 |
ca_path: "/path/to/ca_cert.pem" |
| 148 |
fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2" |
| 149 |
uplink_id: "1ad54420-b145-49a1-9779-21a579ef6f2d" |
| 150 |
|
| 151 |
- name: Retrieve specific fabric information using uplink_name. |
| 152 |
dellemc.openmanage.ome_smart_fabric_uplink_info: |
| 153 |
hostname: "192.168.0.1" |
| 154 |
username: "username" |
| 155 |
password: "password" |
| 156 |
ca_path: "/path/to/ca_cert.pem" |
| 157 |
fabric_id: "61c20a59-9ed5-4ae5-b850-5e5acf42d2f2" |
| 158 |
uplink_name: "u1" |
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
Return Values |
| 163 |
------------- |
| 164 |
|
| 165 |
msg (always, str, Successfully retrieved the fabric uplink information.) |
| 166 |
Status of fabric uplink information retrieval. |
| 167 |
|
| 168 |
|
| 169 |
uplink_info (on success, list, [{'Description': '', 'Id': '1ad54420-b145-49a1-9779-21a579ef6f2d', 'MediaType': 'Ethernet', 'Name': 'u1', 'NativeVLAN': 1, 'Networks': [{'CreatedBy': 'system', 'CreationTime': '2018-09-25 14:46:12.374', 'Description': None, 'Id': 10155, 'InternalRefNWUUId': 'f15a36b6-e3d3-46b2-9e7d-bf9cd66e180d', 'Name': 'testvlan', 'Type': 1, 'UpdatedBy': 'root', 'UpdatedTime': '2019-06-27 15:06:22.836', 'VlanMaximum': 143, 'VlanMinimum': 143}], 'Ports': [{'AdminStatus': 'Enabled', 'BlinkStatus': 'OFF', 'ConfiguredSpeed': '0', 'CurrentSpeed': '0', 'Description': '', 'Id': 'SVCTAG1:ethernet1/1/35', 'MaxSpeed': '0', 'MediaType': 'Ethernet', 'Name': '', 'NodeServiceTag': 'SVCTAG1', 'OpticsType': 'NotPresent', 'PortNumber': 'ethernet1/1/35', 'Role': 'Uplink', 'Status': 'Down', 'Type': 'PhysicalEthernet'}, {'AdminStatus': 'Enabled', 'BlinkStatus': 'OFF', 'ConfiguredSpeed': '0', 'CurrentSpeed': '0', 'Description': '', 'Id': 'SVCTAG1:ethernet1/1/35', 'MaxSpeed': '0', 'MediaType': 'Ethernet', 'Name': '', 'NodeServiceTag': 'SVCTAG1', 'OpticsType': 'NotPresent', 'PortNumber': 'ethernet1/1/35', 'Role': 'Uplink', 'Status': 'Down', 'Type': 'PhysicalEthernet'}], 'Summary': {'NetworkCount': 1, 'PortCount': 2}, 'UfdEnable': 'Disabled'}]) |
| 170 |
Information about the fabric uplink. |
| 171 |
|
| 172 |
|
| 173 |
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."}]}}) |
| 174 |
Details of the HTTP Error. |
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
Status |
| 181 |
------ |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
Authors |
| 188 |
~~~~~~~ |
| 189 |
|
| 190 |
- Husniya Hameed(@husniya_hameed) |
| 191 |
|