Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_roce_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_roce_module:
2
3
4 ***********************************
5 dellemc.enterprise_sonic.sonic_roce
6 ***********************************
7
8 **Manage RoCE QoS 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 RoCE(v2) QoS 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>RoCE QoS 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>pfc_priority</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">string</span>
59 </div>
60 </td>
61 <td>
62 </td>
63 <td>
64 <div>Specifies the PFC priorities to enable RoCEv2 buffer default configuration on</div>
65 <div>Range 0-7, two priority values separated by comma</div>
66 <div>Ex. &#x27;3,4&#x27;</div>
67 <div>Only configurable when RoCE is enabled</div>
68 </td>
69 </tr>
70 <tr>
71 <td class="elbow-placeholder"></td>
72 <td colspan="1">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>roce_enable</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">boolean</span>
78 </div>
79 </td>
80 <td>
81 <ul style="margin: 0; padding: 0"><b>Choices:</b>
82 <li>no</li>
83 <li>yes</li>
84 </ul>
85 </td>
86 <td>
87 <div>Enable or disable RoCEv2 default buffer configuration</div>
88 </td>
89 </tr>
90
91 <tr>
92 <td colspan="2">
93 <div class="ansibleOptionAnchor" id="parameter-"></div>
94 <b>state</b>
95 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
96 <div style="font-size: small">
97 <span style="color: purple">string</span>
98 </div>
99 </td>
100 <td>
101 <ul style="margin: 0; padding: 0"><b>Choices:</b>
102 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
103 </ul>
104 </td>
105 <td>
106 <div>The state of the configuration after module completion.</div>
107 </td>
108 </tr>
109 </table>
110 <br/>
111
112
113 Notes
114 -----
115
116 .. note::
117 - Tested against Enterprise SONiC Distribution by Dell Technologies.
118 - Supports ``check_mode``.
119
120
121
122 Examples
123 --------
124
125 .. code-block:: yaml
126
127 # Using "merged" state
128 #
129 # Before state:
130 # -------------
131 #
132 # sonic# show running-configuration | grep roce
133 # (No RoCE configuration present)
134
135 - name: Enable RoCE for PFC priorities
136 dellemc.enterprise_sonic.sonic_roce:
137 config:
138 roce_enable: true
139 pfc_priorities: '3,4'
140 state: merged
141
142 # After state:
143 # ------------
144 #
145 # sonic# show running-configuration | grep roce
146 # roce enable pfc-priority 3,4
147
148
149
150 Return Values
151 -------------
152 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:
153
154 .. raw:: html
155
156 <table border=0 cellpadding=0 class="documentation-table">
157 <tr>
158 <th colspan="1">Key</th>
159 <th>Returned</th>
160 <th width="100%">Description</th>
161 </tr>
162 <tr>
163 <td colspan="1">
164 <div class="ansibleOptionAnchor" id="return-"></div>
165 <b>after</b>
166 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
167 <div style="font-size: small">
168 <span style="color: purple">list</span>
169 </div>
170 </td>
171 <td>when changed</td>
172 <td>
173 <div>The configuration from module invocation.</div>
174 <br/>
175 <div style="font-size: smaller"><b>Sample:</b></div>
176 <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>
177 </td>
178 </tr>
179 <tr>
180 <td colspan="1">
181 <div class="ansibleOptionAnchor" id="return-"></div>
182 <b>after_generated</b>
183 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
184 <div style="font-size: small">
185 <span style="color: purple">list</span>
186 </div>
187 </td>
188 <td>when <code>check_mode</code></td>
189 <td>
190 <div>The generated (simulated) configuration expected from module invocation.</div>
191 <br/>
192 <div style="font-size: smaller"><b>Sample:</b></div>
193 <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
194 as the parameters above.</div>
195 </td>
196 </tr>
197 <tr>
198 <td colspan="1">
199 <div class="ansibleOptionAnchor" id="return-"></div>
200 <b>before</b>
201 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
202 <div style="font-size: small">
203 <span style="color: purple">list</span>
204 </div>
205 </td>
206 <td>always</td>
207 <td>
208 <div>The configuration prior to the module invocation.</div>
209 <br/>
210 <div style="font-size: smaller"><b>Sample:</b></div>
211 <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>
212 </td>
213 </tr>
214 <tr>
215 <td colspan="1">
216 <div class="ansibleOptionAnchor" id="return-"></div>
217 <b>commands</b>
218 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
219 <div style="font-size: small">
220 <span style="color: purple">list</span>
221 </div>
222 </td>
223 <td>always</td>
224 <td>
225 <div>The set of commands pushed to the remote device.</div>
226 <br/>
227 <div style="font-size: smaller"><b>Sample:</b></div>
228 <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>
229 </td>
230 </tr>
231 </table>
232 <br/><br/>
233
234
235 Status
236 ------
237
238
239 Authors
240 ~~~~~~~
241
242 - S\. Talabi (@stalabi1)