Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_qos_pfc_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_qos_pfc_module:
2
3
4 **************************************
5 dellemc.enterprise_sonic.sonic_qos_pfc
6 **************************************
7
8 **Manage QoS PFC configuration on SONiC**
9
10
11 Version added: 2.5.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of QoS PFC for devices running 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">dictionary</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>QoS PFC configuration</div>
49 </td>
50 </tr>
51 <tr>
52 <td class="elbow-placeholder"></td>
53 <td colspan="1">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>counter_poll</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">boolean</span>
59 </div>
60 </td>
61 <td>
62 <ul style="margin: 0; padding: 0"><b>Choices:</b>
63 <li>no</li>
64 <li><div style="color: blue"><b>yes</b>&nbsp;&larr;</div></li>
65 </ul>
66 </td>
67 <td>
68 <div>Enable or disable use of flex-counters for PFC watchdog</div>
69 </td>
70 </tr>
71 <tr>
72 <td class="elbow-placeholder"></td>
73 <td colspan="1">
74 <div class="ansibleOptionAnchor" id="parameter-"></div>
75 <b>poll_interval</b>
76 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
77 <div style="font-size: small">
78 <span style="color: purple">integer</span>
79 </div>
80 </td>
81 <td>
82 </td>
83 <td>
84 <div>Polling interval for PFC watchdog</div>
85 <div>Range 100-3000</div>
86 </td>
87 </tr>
88
89 <tr>
90 <td colspan="2">
91 <div class="ansibleOptionAnchor" id="parameter-"></div>
92 <b>state</b>
93 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
94 <div style="font-size: small">
95 <span style="color: purple">string</span>
96 </div>
97 </td>
98 <td>
99 <ul style="margin: 0; padding: 0"><b>Choices:</b>
100 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
101 <li>deleted</li>
102 <li>overridden</li>
103 <li>replaced</li>
104 </ul>
105 </td>
106 <td>
107 <div>The state of the configuration after module completion.</div>
108 </td>
109 </tr>
110 </table>
111 <br/>
112
113
114 Notes
115 -----
116
117 .. note::
118 - Tested against Enterprise SONiC Distribution by Dell Technologies.
119 - Supports ``check_mode``.
120
121
122
123 Examples
124 --------
125
126 .. code-block:: yaml
127
128 # Using "merged" state
129 #
130 # Before state:
131 # -------------
132 #
133 # sonic# show priority-flow-control watchdog
134 #
135 # Watchdog Summary
136 # ----------------
137 # Polling Interval: : Not Available
138 # Flex Counters: : enabled
139
140 - name: Merge QoS PFC configurations
141 dellemc.enterprise_sonic.sonic_qos_pfc:
142 config:
143 counter_poll: true
144 poll_interval: 150
145 state: merged
146
147 # After state:
148 # ------------
149 #
150 # sonic# show priority-flow-control watchdog
151 #
152 # Watchdog Summary
153 # ----------------
154 # Polling Interval: : 150
155 # Flex Counters: : enabled
156 #
157 #
158 # Using "replaced" state
159 #
160 # Before state:
161 # -------------
162 #
163 # sonic# show priority-flow-control watchdog
164 #
165 # Watchdog Summary
166 # ----------------
167 # Polling Interval: : 150
168 # Flex Counters: : enabled
169
170 - name: Replace QoS PFC configurations
171 dellemc.enterprise_sonic.sonic_qos_pfc:
172 config:
173 poll_interval: 365
174 state: replaced
175
176 # After state:
177 # ------------
178 #
179 # sonic# show priority-flow-control watchdog
180 #
181 # Watchdog Summary
182 # ----------------
183 # Polling Interval: : 365
184 # Flex Counters: : enabled
185 #
186 #
187 # Using "overridden" state
188 # Before state:
189 # -------------
190 #
191 # sonic# show priority-flow-control watchdog
192 #
193 # Watchdog Summary
194 # ----------------
195 # Polling Interval: : 365
196 # Flex Counters: : enabled
197
198 - name: Override QoS PFC configurations
199 dellemc.enterprise_sonic.sonic_qos_pfc:
200 config:
201 counter_poll: false
202 poll_interval: 400
203 state: overridden
204
205 # After state:
206 # ------------
207 #
208 # sonic# show priority-flow-control watchdog
209 #
210 # Watchdog Summary
211 # ----------------
212 # Polling Interval: : 400
213 # Flex Counters: : disabled
214 #
215 #
216 # Using "deleted" state
217 #
218 # Before state:
219 # -------------
220 #
221 # sonic# show priority-flow-control watchdog
222 #
223 # Watchdog Summary
224 # ----------------
225 # Polling Interval: : 400
226 # Flex Counters: : disabled
227
228 - name: Delete QoS PFC configurations
229 dellemc.enterprise_sonic.sonic_qos_pfc:
230 config:
231 counter_poll: false
232 poll_interval: 400
233 state: deleted
234
235 # After state:
236 # ------------
237 #
238 # sonic# show priority-flow-control watchdog
239 #
240 # Watchdog Summary
241 # ----------------
242 # Polling Interval: : Not Available
243 # Flex Counters: : enabled
244
245
246
247 Return Values
248 -------------
249 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:
250
251 .. raw:: html
252
253 <table border=0 cellpadding=0 class="documentation-table">
254 <tr>
255 <th colspan="1">Key</th>
256 <th>Returned</th>
257 <th width="100%">Description</th>
258 </tr>
259 <tr>
260 <td colspan="1">
261 <div class="ansibleOptionAnchor" id="return-"></div>
262 <b>after</b>
263 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
264 <div style="font-size: small">
265 <span style="color: purple">list</span>
266 </div>
267 </td>
268 <td>when changed</td>
269 <td>
270 <div>The resulting configuration module invocation.</div>
271 <br/>
272 <div style="font-size: smaller"><b>Sample:</b></div>
273 <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>
274 </td>
275 </tr>
276 <tr>
277 <td colspan="1">
278 <div class="ansibleOptionAnchor" id="return-"></div>
279 <b>after_generated</b>
280 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
281 <div style="font-size: small">
282 <span style="color: purple">list</span>
283 </div>
284 </td>
285 <td>when <code>check_mode</code></td>
286 <td>
287 <div>The generated configuration module invocation.</div>
288 <br/>
289 <div style="font-size: smaller"><b>Sample:</b></div>
290 <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
291 as the parameters above.</div>
292 </td>
293 </tr>
294 <tr>
295 <td colspan="1">
296 <div class="ansibleOptionAnchor" id="return-"></div>
297 <b>before</b>
298 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
299 <div style="font-size: small">
300 <span style="color: purple">list</span>
301 </div>
302 </td>
303 <td>always</td>
304 <td>
305 <div>The configuration prior to the module invocation.</div>
306 <br/>
307 <div style="font-size: smaller"><b>Sample:</b></div>
308 <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>
309 </td>
310 </tr>
311 <tr>
312 <td colspan="1">
313 <div class="ansibleOptionAnchor" id="return-"></div>
314 <b>commands</b>
315 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
316 <div style="font-size: small">
317 <span style="color: purple">list</span>
318 </div>
319 </td>
320 <td>always</td>
321 <td>
322 <div>The set of commands pushed to the remote device.</div>
323 <br/>
324 <div style="font-size: smaller"><b>Sample:</b></div>
325 <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>
326 </td>
327 </tr>
328 </table>
329 <br/><br/>
330
331
332 Status
333 ------
334
335
336 Authors
337 ~~~~~~~
338
339 - S\. Talabi (@stalabi1)