Debian Codegraph @

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

raw
1 .. _ome_smart_fabric_module:
2
3
4 ome_smart_fabric -- Create, modify or delete 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 a fabric, and modify or delete an existing fabric 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 state (optional, str, present)
31 \ :literal:`present`\ creates a new fabric or modifies an existing fabric.
32
33 \ :literal:`absent`\ deletes an existing fabric.
34
35 Notes: The create, modify, or delete fabric operation takes around 15-20 minutes to complete. It is recommended not to start an another operation until the current operation is completed.
36
37
38 name (True, str, None)
39 Provide the \ :emphasis:`name`\ of the fabric to be created, deleted or modified.
40
41
42 new_name (optional, str, None)
43 Provide the \ :emphasis:`name`\ of the fabric to be modified.
44
45
46 description (optional, str, None)
47 Provide a short description of the fabric to be created or modified.
48
49
50 fabric_design (optional, str, None)
51 Specify the fabric topology.See the use API \ https://www.dell.com/support/manuals/en-in/poweredge-mx7000/omem_1_20_10_ug/smartfabric-network-topologies\ to know why its topology.
52
53 \ :emphasis:`fabric\_design`\ is mandatory for fabric creation.
54
55
56 primary_switch_service_tag (optional, str, None)
57 Service tag of the first switch.
58
59 \ :emphasis:`primary\_switch\_service\_tag`\ is mandatory for fabric creation.
60
61 \ :emphasis:`primary\_switch\_service\_tag`\ must belong to the model selected in \ :emphasis:`fabric\_design`\ .
62
63
64 secondary_switch_service_tag (optional, str, None)
65 Service tag of the second switch.
66
67 \ :emphasis:`secondary\_switch\_service\_tag`\ is mandatory for fabric creation.
68
69 \ :emphasis:`secondary\_switch\_service\_tag`\ must belong to the model selected in \ :emphasis:`fabric\_design`\ .
70
71
72 override_LLDP_configuration (optional, str, None)
73 Enable this configuration to allow Fabric Management Address to be included in LLDP messages.
74
75 Notes: OpenManage Enterprise Modular 1.0 does not support this option. Some software networking solutions require a single management address to be transmitted by all Ethernet switches to represent the entire fabric. Enable this feature only when connecting to such a solution.
76
77
78 hostname (True, str, None)
79 OpenManage Enterprise Modular IP address or hostname.
80
81
82 username (False, str, None)
83 OpenManage Enterprise Modular username.
84
85 If the username is not provided, then the environment variable \ :envvar:`OME\_USERNAME`\ is used.
86
87 Example: export OME\_USERNAME=username
88
89
90 password (False, str, None)
91 OpenManage Enterprise Modular password.
92
93 If the password is not provided, then the environment variable \ :envvar:`OME\_PASSWORD`\ is used.
94
95 Example: export OME\_PASSWORD=password
96
97
98 x_auth_token (False, str, None)
99 Authentication token.
100
101 If the x\_auth\_token is not provided, then the environment variable \ :envvar:`OME\_X\_AUTH\_TOKEN`\ is used.
102
103 Example: export OME\_X\_AUTH\_TOKEN=x\_auth\_token
104
105
106 port (optional, int, 443)
107 OpenManage Enterprise Modular HTTPS port.
108
109
110 validate_certs (optional, bool, True)
111 If \ :literal:`false`\ , the SSL certificates will not be validated.
112
113 Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used.
114
115 Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default.
116
117
118 ca_path (optional, path, None)
119 The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
120
121
122 timeout (optional, int, 30)
123 The socket level timeout in seconds.
124
125
126
127
128
129 Notes
130 -----
131
132 .. note::
133 - Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
134 - This module supports \ :literal:`check\_mode`\ .
135
136
137
138
139 Examples
140 --------
141
142 .. code-block:: yaml+jinja
143
144
145 ---
146 - name: Create a fabric
147 dellemc.openmanage.ome_smart_fabric:
148 hostname: "192.168.0.1"
149 username: "username"
150 password: "password"
151 ca_path: "/path/to/ca_cert.pem"
152 state: present
153 name: "fabric1"
154 description: "fabric desc"
155 fabric_design: "2xMX9116n_Fabric_Switching_Engines_in_different_chassis"
156 primary_switch_service_tag: "SVTG123"
157 secondary_switch_service_tag: "PXYT456"
158 override_LLDP_configuration: "Enabled"
159
160 - name: Modify a fabric
161 dellemc.openmanage.ome_smart_fabric:
162 hostname: "192.168.0.1"
163 username: "username"
164 password: "password"
165 ca_path: "/path/to/ca_cert.pem"
166 state: present
167 name: "fabric1"
168 new_name: "fabric_gold1"
169 description: "new description"
170
171 - name: Delete a fabric
172 dellemc.openmanage.ome_smart_fabric:
173 hostname: "192.168.0.1"
174 username: "username"
175 password: "password"
176 ca_path: "/path/to/ca_cert.pem"
177 state: "absent"
178 name: "fabric1"
179
180
181
182 Return Values
183 -------------
184
185 msg (always, str, Fabric creation operation is initiated.)
186 Overall status of the fabric operation.
187
188
189 fabric_id (success, str, 1312cceb-c3dd-4348-95c1-d8541a17d776)
190 Returns the ID when an fabric is created, modified or deleted.
191
192
193 additional_info (when I(state=present) and additional information present in response., dict, {'error': {'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.', '@Message.ExtendedInfo': [{'RelatedProperties': [], 'Message': 'Fabric update is successful. The OverrideLLDPConfiguration attribute is not provided in the payload, so it preserves the previous value.', 'MessageArgs': [], 'Severity': 'Informational', 'Resolution': 'Please update the Fabric with the OverrideLLDPConfiguration as Disabled or Enabled if necessary.'}]}})
194 Additional details of the fabric operation.
195
196
197 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': [{'RelatedProperties': [], 'Message': 'Unable to perform operation, because the fabric manager was not reachable.', 'MessageArgs': [], 'Severity': 'Warning', 'Resolution': 'Make sure of the following and retry the operation: 1) There is at least one advanced I/O Module in power-on mode. For example, MX9116n Ethernet Switch and MX5108n Ethernet Switch. However, if an advanced I/O Module is available in the power-on mode, make sure that the network profile is not set when the fabric manager is in the switch-over mode. 2) If the issue persists, wait for few minutes and retry the operation.'}]}})
198 Details of the HTTP Error.
199
200
201
202
203
204 Status
205 ------
206
207
208
209
210
211 Authors
212 ~~~~~~~
213
214 - Sajna Shetty(@Sajna-Shetty)
215