Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_port_breakout_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_port_breakout_module:
2
3
4 ********************************************
5 dellemc.enterprise_sonic.sonic_port_breakout
6 ********************************************
7
8 **Configure port breakout settings on physical interfaces**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of port breakout parameters on devices running Enterprise SONiC.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="2">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="2">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>config</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">list</span>
43 / <span style="color: purple">elements=dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>Specifies the port breakout related configuration.</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="1">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>mode</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">string</span>
60 </div>
61 </td>
62 <td>
63 <ul style="margin: 0; padding: 0"><b>Choices:</b>
64 <li>1x10G</li>
65 <li>1x25G</li>
66 <li>1x40G</li>
67 <li>1x50G</li>
68 <li>1x100G</li>
69 <li>1x200G</li>
70 <li>1x400G</li>
71 <li>1x800G</li>
72 <li>2x10G</li>
73 <li>2x25G</li>
74 <li>2x40G</li>
75 <li>2x50G</li>
76 <li>2x100G</li>
77 <li>2x200G</li>
78 <li>2x400G</li>
79 <li>4x10G</li>
80 <li>4x25G</li>
81 <li>4x50G</li>
82 <li>4x100G</li>
83 <li>4x200G</li>
84 <li>8x10G</li>
85 <li>8x25G</li>
86 <li>8x50G</li>
87 <li>8x100G</li>
88 </ul>
89 </td>
90 <td>
91 <div>Specifies the mode of the port breakout.</div>
92 </td>
93 </tr>
94 <tr>
95 <td class="elbow-placeholder"></td>
96 <td colspan="1">
97 <div class="ansibleOptionAnchor" id="parameter-"></div>
98 <b>name</b>
99 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
100 <div style="font-size: small">
101 <span style="color: purple">string</span>
102 / <span style="color: red">required</span>
103 </div>
104 </td>
105 <td>
106 </td>
107 <td>
108 <div>Specifies the name of the port breakout.</div>
109 </td>
110 </tr>
111
112 <tr>
113 <td colspan="2">
114 <div class="ansibleOptionAnchor" id="parameter-"></div>
115 <b>state</b>
116 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
117 <div style="font-size: small">
118 <span style="color: purple">string</span>
119 </div>
120 </td>
121 <td>
122 <ul style="margin: 0; padding: 0"><b>Choices:</b>
123 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
124 <li>deleted</li>
125 <li>replaced</li>
126 <li>overridden</li>
127 </ul>
128 </td>
129 <td>
130 <div>Specifies the operation to be performed on the port breakout configured on the device.</div>
131 <div>In case of merged, the input mode configuration will be merged with the existing port breakout configuration on the device.</div>
132 <div>In case of deleted, the existing port breakout mode configuration will be removed from the device.</div>
133 <div>In case of replaced, on-device port breakout configuration of the specified interfaces is replaced with provided configuration.</div>
134 <div>In case of overridden, all on-device port breakout configurations are overridden with the provided configuration.</div>
135 </td>
136 </tr>
137 </table>
138 <br/>
139
140
141 Notes
142 -----
143
144 .. note::
145 - Tested against Enterprise SONiC Distribution by Dell Technologies.
146 - Supports ``check_mode``.
147
148
149
150 Examples
151 --------
152
153 .. code-block:: yaml
154
155 # Using "deleted" state
156 #
157 # Before state:
158 # -------------
159 #
160 # sonic# show interface breakout
161 # -----------------------------------------------
162 # Port Breakout Mode Status Interfaces
163 # -----------------------------------------------
164 # 1/1 4x10G Completed Eth1/1/1
165 # Eth1/1/2
166 # Eth1/1/3
167 # Eth1/1/4
168 # 1/11 1x100G Completed Eth1/11/1
169 #
170
171 - name: Delete interface port breakout configuration
172 dellemc.enterprise_sonic.sonic_port_breakout:
173 config:
174 - name: 1/11
175 mode: 1x100G
176 state: deleted
177
178 # After state:
179 # ------------
180 #
181 # sonic# show interface breakout
182 # -----------------------------------------------
183 # Port Breakout Mode Status Interfaces
184 # -----------------------------------------------
185 # 1/1 4x10G Completed Eth1/1/1
186 # Eth1/1/2
187 # Eth1/1/3
188 # Eth1/1/4
189 # 1/11 Default Completed Eth1/11
190 #
191
192
193 # Using "deleted" state
194 #
195 # Before state:
196 # -------------
197 #
198 # sonic# show interface breakout
199 # -----------------------------------------------
200 # Port Breakout Mode Status Interfaces
201 # -----------------------------------------------
202 # 1/1 4x10G Completed Eth1/1/1
203 # Eth1/1/2
204 # Eth1/1/3
205 # Eth1/1/4
206 # 1/11 1x100G Completed Eth1/11/1
207 #
208
209 - name: Delete all port breakout configurations
210 dellemc.enterprise_sonic.sonic_port_breakout:
211 config:
212 state: deleted
213
214 # After state:
215 # ------------
216 #
217 # sonic# show interface breakout
218 # -----------------------------------------------
219 # Port Breakout Mode Status Interfaces
220 # -----------------------------------------------
221 # 1/1 Default Completed Eth1/1
222 # 1/11 Default Completed Eth1/11
223
224
225 # Using "merged" state
226 #
227 # Before state:
228 # -------------
229 #
230 # sonic# show interface breakout
231 # -----------------------------------------------
232 # Port Breakout Mode Status Interfaces
233 # -----------------------------------------------
234 # 1/1 4x10G Completed Eth1/1/1
235 # Eth1/1/2
236 # Eth1/1/3
237 # Eth1/1/4
238 #
239
240 - name: Merge port breakout configurations
241 dellemc.enterprise_sonic.sonic_port_breakout:
242 config:
243 - name: 1/11
244 mode: 1x100G
245 state: merged
246
247 # After state:
248 # ------------
249 #
250 # sonic# show interface breakout
251 # -----------------------------------------------
252 # Port Breakout Mode Status Interfaces
253 # -----------------------------------------------
254 # 1/1 4x10G Completed Eth1/1/1
255 # Eth1/1/2
256 # Eth1/1/3
257 # Eth1/1/4
258 # 1/11 1x100G Completed Eth1/11/1
259
260
261 # Using "replaced" state
262 #
263 # Before state:
264 # -------------
265 #
266 # sonic# show interface breakout
267 # -----------------------------------------------
268 # Port Breakout Mode Status Interfaces
269 # -----------------------------------------------
270 # 1/49 4x25G Completed Eth1/49/1
271 # Eth1/49/2
272 # Eth1/49/3
273 # Eth1/49/4
274 #
275
276 - name: Replace port breakout configurations
277 dellemc.enterprise_sonic.sonic_port_breakout:
278 config:
279 - name: 1/49
280 mode: 4x10G
281 state: replaced
282
283 # After state:
284 # ------------
285 #
286 # sonic# show interface breakout
287 # -----------------------------------------------
288 # Port Breakout Mode Status Interfaces
289 # -----------------------------------------------
290 # 1/49 4x10G Completed Eth1/49/1
291 # Eth1/49/2
292 # Eth1/49/3
293 # Eth1/49/4
294
295
296 # Using "overridden" state
297 #
298 # Before state:
299 # -------------
300 #
301 # sonic# show interface breakout
302 # ----------------------------------------------
303 # Port Breakout Mode Status Interfaces
304 # -----------------------------------------------
305 # 1/49 4x10G Completed Eth1/49/1
306 # Eth1/49/2
307 # Eth1/49/3
308 # Eth1/49/4
309 # 1/50 2x50G Completed Eth1/50/1
310 # Eth1/50/2
311 # 1/51 1x100G Completed Eth1/51/1
312 #
313
314 - name: Override port breakout configurations
315 dellemc.enterprise_sonic.sonic_port_breakout:
316 config:
317 - name: 1/52
318 mode: 4x10G
319 state: overridden
320
321 # After state:
322 # ------------
323 #
324 # sonic# show interface breakout
325 # -----------------------------------------------
326 # Port Breakout Mode Status Interfaces
327 # -----------------------------------------------
328 # 1/49 Default Completed Eth1/49
329 # 1/50 Default Completed Eth1/50
330 # 1/51 Default Completed Eth1/51
331 # 1/52 4x10G Completed Eth1/52/1
332 # Eth1/52/2
333 # Eth1/52/3
334 # Eth1/52/4
335
336
337
338 Return Values
339 -------------
340 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
341
342 .. raw:: html
343
344 <table border=0 cellpadding=0 class="documentation-table">
345 <tr>
346 <th colspan="1">Key</th>
347 <th>Returned</th>
348 <th width="100%">Description</th>
349 </tr>
350 <tr>
351 <td colspan="1">
352 <div class="ansibleOptionAnchor" id="return-"></div>
353 <b>after</b>
354 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
355 <div style="font-size: small">
356 <span style="color: purple">list</span>
357 </div>
358 </td>
359 <td>when changed</td>
360 <td>
361 <div>The resulting configuration module invocation.</div>
362 <br/>
363 <div style="font-size: smaller"><b>Sample:</b></div>
364 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format as the parameters above.</div>
365 </td>
366 </tr>
367 <tr>
368 <td colspan="1">
369 <div class="ansibleOptionAnchor" id="return-"></div>
370 <b>before</b>
371 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
372 <div style="font-size: small">
373 <span style="color: purple">list</span>
374 </div>
375 </td>
376 <td>always</td>
377 <td>
378 <div>The configuration prior to the module invocation.</div>
379 <br/>
380 <div style="font-size: smaller"><b>Sample:</b></div>
381 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format as the parameters above.</div>
382 </td>
383 </tr>
384 <tr>
385 <td colspan="1">
386 <div class="ansibleOptionAnchor" id="return-"></div>
387 <b>commands</b>
388 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
389 <div style="font-size: small">
390 <span style="color: purple">list</span>
391 </div>
392 </td>
393 <td>always</td>
394 <td>
395 <div>The set of commands pushed to the remote device.</div>
396 <br/>
397 <div style="font-size: smaller"><b>Sample:</b></div>
398 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
399 </td>
400 </tr>
401 </table>
402 <br/><br/>
403
404
405 Status
406 ------
407
408
409 Authors
410 ~~~~~~~
411
412 - Niraimadaiselvam M (@niraimadaiselvamm)