| 1 |
.. _dellemc.enterprise_sonic.sonic_ars_module: |
| 2 |
|
| 3 |
|
| 4 |
********************************** |
| 5 |
dellemc.enterprise_sonic.sonic_ars |
| 6 |
********************************** |
| 7 |
|
| 8 |
**Manage adaptive routing and switching (ARS) configuration on SONiC** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 3.1.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides configuration management of ARS 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="3">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="3"> |
| 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>ARS configuration</div> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td class="elbow-placeholder"></td> |
| 53 |
<td colspan="2"> |
| 54 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 55 |
<b>ars_objects</b> |
| 56 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 57 |
<div style="font-size: small"> |
| 58 |
<span style="color: purple">list</span> |
| 59 |
/ <span style="color: purple">elements=dictionary</span> |
| 60 |
</div> |
| 61 |
</td> |
| 62 |
<td> |
| 63 |
</td> |
| 64 |
<td> |
| 65 |
<div>List of ARS next-hop group objects configuration</div> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<td class="elbow-placeholder"></td> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="1"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>idle_time</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">integer</span> |
| 77 |
</div> |
| 78 |
</td> |
| 79 |
<td> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
<div>Idle time in microseconds</div> |
| 83 |
<div>Range 16-32767</div> |
| 84 |
</td> |
| 85 |
</tr> |
| 86 |
<tr> |
| 87 |
<td class="elbow-placeholder"></td> |
| 88 |
<td class="elbow-placeholder"></td> |
| 89 |
<td colspan="1"> |
| 90 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 91 |
<b>max_flows</b> |
| 92 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 93 |
<div style="font-size: small"> |
| 94 |
<span style="color: purple">integer</span> |
| 95 |
</div> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 99 |
<li>256</li> |
| 100 |
<li>512</li> |
| 101 |
<li>1024</li> |
| 102 |
<li>2048</li> |
| 103 |
<li>4096</li> |
| 104 |
<li>8192</li> |
| 105 |
<li>16384</li> |
| 106 |
<li>32768</li> |
| 107 |
</ul> |
| 108 |
</td> |
| 109 |
<td> |
| 110 |
<div>Maximum number of flows that can be maintained by the ARS object</div> |
| 111 |
</td> |
| 112 |
</tr> |
| 113 |
<tr> |
| 114 |
<td class="elbow-placeholder"></td> |
| 115 |
<td class="elbow-placeholder"></td> |
| 116 |
<td colspan="1"> |
| 117 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 118 |
<b>mode</b> |
| 119 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 120 |
<div style="font-size: small"> |
| 121 |
<span style="color: purple">string</span> |
| 122 |
</div> |
| 123 |
</td> |
| 124 |
<td> |
| 125 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 126 |
<li>fixed</li> |
| 127 |
<li>flowlet-quality</li> |
| 128 |
<li>flowlet-random</li> |
| 129 |
<li>packet-quality</li> |
| 130 |
<li>packet-random</li> |
| 131 |
</ul> |
| 132 |
</td> |
| 133 |
<td> |
| 134 |
<div>ARS path reassignment mode</div> |
| 135 |
</td> |
| 136 |
</tr> |
| 137 |
<tr> |
| 138 |
<td class="elbow-placeholder"></td> |
| 139 |
<td class="elbow-placeholder"></td> |
| 140 |
<td colspan="1"> |
| 141 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 142 |
<b>name</b> |
| 143 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 144 |
<div style="font-size: small"> |
| 145 |
<span style="color: purple">string</span> |
| 146 |
/ <span style="color: red">required</span> |
| 147 |
</div> |
| 148 |
</td> |
| 149 |
<td> |
| 150 |
</td> |
| 151 |
<td> |
| 152 |
<div>Name of next-hop group object</div> |
| 153 |
</td> |
| 154 |
</tr> |
| 155 |
|
| 156 |
<tr> |
| 157 |
<td class="elbow-placeholder"></td> |
| 158 |
<td colspan="2"> |
| 159 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 160 |
<b>port_bindings</b> |
| 161 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 162 |
<div style="font-size: small"> |
| 163 |
<span style="color: purple">list</span> |
| 164 |
/ <span style="color: purple">elements=dictionary</span> |
| 165 |
</div> |
| 166 |
</td> |
| 167 |
<td> |
| 168 |
</td> |
| 169 |
<td> |
| 170 |
<div>List of ARS port bindings configuration</div> |
| 171 |
</td> |
| 172 |
</tr> |
| 173 |
<tr> |
| 174 |
<td class="elbow-placeholder"></td> |
| 175 |
<td class="elbow-placeholder"></td> |
| 176 |
<td colspan="1"> |
| 177 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 178 |
<b>name</b> |
| 179 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 180 |
<div style="font-size: small"> |
| 181 |
<span style="color: purple">string</span> |
| 182 |
/ <span style="color: red">required</span> |
| 183 |
</div> |
| 184 |
</td> |
| 185 |
<td> |
| 186 |
</td> |
| 187 |
<td> |
| 188 |
<div>Name of port</div> |
| 189 |
</td> |
| 190 |
</tr> |
| 191 |
<tr> |
| 192 |
<td class="elbow-placeholder"></td> |
| 193 |
<td class="elbow-placeholder"></td> |
| 194 |
<td colspan="1"> |
| 195 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 196 |
<b>profile</b> |
| 197 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 198 |
<div style="font-size: small"> |
| 199 |
<span style="color: purple">string</span> |
| 200 |
</div> |
| 201 |
</td> |
| 202 |
<td> |
| 203 |
</td> |
| 204 |
<td> |
| 205 |
<div>ARS port profile to bind to port</div> |
| 206 |
<div>Required for modifcation</div> |
| 207 |
</td> |
| 208 |
</tr> |
| 209 |
|
| 210 |
<tr> |
| 211 |
<td class="elbow-placeholder"></td> |
| 212 |
<td colspan="2"> |
| 213 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 214 |
<b>port_profiles</b> |
| 215 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 216 |
<div style="font-size: small"> |
| 217 |
<span style="color: purple">list</span> |
| 218 |
/ <span style="color: purple">elements=dictionary</span> |
| 219 |
</div> |
| 220 |
</td> |
| 221 |
<td> |
| 222 |
</td> |
| 223 |
<td> |
| 224 |
<div>List of ARS port profiles configuration</div> |
| 225 |
</td> |
| 226 |
</tr> |
| 227 |
<tr> |
| 228 |
<td class="elbow-placeholder"></td> |
| 229 |
<td class="elbow-placeholder"></td> |
| 230 |
<td colspan="1"> |
| 231 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 232 |
<b>enable</b> |
| 233 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 234 |
<div style="font-size: small"> |
| 235 |
<span style="color: purple">boolean</span> |
| 236 |
</div> |
| 237 |
</td> |
| 238 |
<td> |
| 239 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 240 |
<li>no</li> |
| 241 |
<li>yes</li> |
| 242 |
</ul> |
| 243 |
</td> |
| 244 |
<td> |
| 245 |
<div>Enable/disable ARS for the port</div> |
| 246 |
</td> |
| 247 |
</tr> |
| 248 |
<tr> |
| 249 |
<td class="elbow-placeholder"></td> |
| 250 |
<td class="elbow-placeholder"></td> |
| 251 |
<td colspan="1"> |
| 252 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 253 |
<b>load_future_weight</b> |
| 254 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 255 |
<div style="font-size: small"> |
| 256 |
<span style="color: purple">integer</span> |
| 257 |
</div> |
| 258 |
</td> |
| 259 |
<td> |
| 260 |
</td> |
| 261 |
<td> |
| 262 |
<div>Weight of future port load used in EWMA calculations</div> |
| 263 |
<div>Range 1-16</div> |
| 264 |
</td> |
| 265 |
</tr> |
| 266 |
<tr> |
| 267 |
<td class="elbow-placeholder"></td> |
| 268 |
<td class="elbow-placeholder"></td> |
| 269 |
<td colspan="1"> |
| 270 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 271 |
<b>load_past_weight</b> |
| 272 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 273 |
<div style="font-size: small"> |
| 274 |
<span style="color: purple">integer</span> |
| 275 |
</div> |
| 276 |
</td> |
| 277 |
<td> |
| 278 |
</td> |
| 279 |
<td> |
| 280 |
<div>Weight as a percentage of the past port load</div> |
| 281 |
<div>Range 0-100</div> |
| 282 |
</td> |
| 283 |
</tr> |
| 284 |
<tr> |
| 285 |
<td class="elbow-placeholder"></td> |
| 286 |
<td class="elbow-placeholder"></td> |
| 287 |
<td colspan="1"> |
| 288 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 289 |
<b>load_scaling_factor</b> |
| 290 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 291 |
<div style="font-size: small"> |
| 292 |
<span style="color: purple">float</span> |
| 293 |
</div> |
| 294 |
</td> |
| 295 |
<td> |
| 296 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 297 |
<li>0</li> |
| 298 |
<li>1</li> |
| 299 |
<li>2.5</li> |
| 300 |
<li>4</li> |
| 301 |
<li>5</li> |
| 302 |
<li>10</li> |
| 303 |
<li>20</li> |
| 304 |
<li>40</li> |
| 305 |
<li>80</li> |
| 306 |
</ul> |
| 307 |
</td> |
| 308 |
<td> |
| 309 |
<div>Port load scaling factor</div> |
| 310 |
</td> |
| 311 |
</tr> |
| 312 |
<tr> |
| 313 |
<td class="elbow-placeholder"></td> |
| 314 |
<td class="elbow-placeholder"></td> |
| 315 |
<td colspan="1"> |
| 316 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 317 |
<b>name</b> |
| 318 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 319 |
<div style="font-size: small"> |
| 320 |
<span style="color: purple">string</span> |
| 321 |
/ <span style="color: red">required</span> |
| 322 |
</div> |
| 323 |
</td> |
| 324 |
<td> |
| 325 |
</td> |
| 326 |
<td> |
| 327 |
<div>Name of port profile</div> |
| 328 |
</td> |
| 329 |
</tr> |
| 330 |
|
| 331 |
<tr> |
| 332 |
<td class="elbow-placeholder"></td> |
| 333 |
<td colspan="2"> |
| 334 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 335 |
<b>profiles</b> |
| 336 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 337 |
<div style="font-size: small"> |
| 338 |
<span style="color: purple">list</span> |
| 339 |
/ <span style="color: purple">elements=dictionary</span> |
| 340 |
</div> |
| 341 |
</td> |
| 342 |
<td> |
| 343 |
</td> |
| 344 |
<td> |
| 345 |
<div>List of ARS profiles configuration</div> |
| 346 |
</td> |
| 347 |
</tr> |
| 348 |
<tr> |
| 349 |
<td class="elbow-placeholder"></td> |
| 350 |
<td class="elbow-placeholder"></td> |
| 351 |
<td colspan="1"> |
| 352 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 353 |
<b>algorithm</b> |
| 354 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 355 |
<div style="font-size: small"> |
| 356 |
<span style="color: purple">string</span> |
| 357 |
</div> |
| 358 |
</td> |
| 359 |
<td> |
| 360 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 361 |
<li>EWMA</li> |
| 362 |
</ul> |
| 363 |
</td> |
| 364 |
<td> |
| 365 |
<div>ARS algorithm used for quality computation</div> |
| 366 |
<div><code>EWMA</code> - Exponential Weighted Moving Average</div> |
| 367 |
</td> |
| 368 |
</tr> |
| 369 |
<tr> |
| 370 |
<td class="elbow-placeholder"></td> |
| 371 |
<td class="elbow-placeholder"></td> |
| 372 |
<td colspan="1"> |
| 373 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 374 |
<b>load_current_max_val</b> |
| 375 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 376 |
<div style="font-size: small"> |
| 377 |
<span style="color: purple">integer</span> |
| 378 |
</div> |
| 379 |
</td> |
| 380 |
<td> |
| 381 |
</td> |
| 382 |
<td> |
| 383 |
<div>Maximum current load threshold value for the quantization process</div> |
| 384 |
<div>Range 0-133169151</div> |
| 385 |
</td> |
| 386 |
</tr> |
| 387 |
<tr> |
| 388 |
<td class="elbow-placeholder"></td> |
| 389 |
<td class="elbow-placeholder"></td> |
| 390 |
<td colspan="1"> |
| 391 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 392 |
<b>load_current_min_val</b> |
| 393 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 394 |
<div style="font-size: small"> |
| 395 |
<span style="color: purple">integer</span> |
| 396 |
</div> |
| 397 |
</td> |
| 398 |
<td> |
| 399 |
</td> |
| 400 |
<td> |
| 401 |
<div>Minimum current load threshold value for the quantization process</div> |
| 402 |
<div>Range 0-133169151</div> |
| 403 |
</td> |
| 404 |
</tr> |
| 405 |
<tr> |
| 406 |
<td class="elbow-placeholder"></td> |
| 407 |
<td class="elbow-placeholder"></td> |
| 408 |
<td colspan="1"> |
| 409 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 410 |
<b>load_future_max_val</b> |
| 411 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 412 |
<div style="font-size: small"> |
| 413 |
<span style="color: purple">integer</span> |
| 414 |
</div> |
| 415 |
</td> |
| 416 |
<td> |
| 417 |
</td> |
| 418 |
<td> |
| 419 |
<div>Maximum future load threshold value for the quantization process</div> |
| 420 |
<div>Range 0-266338303</div> |
| 421 |
</td> |
| 422 |
</tr> |
| 423 |
<tr> |
| 424 |
<td class="elbow-placeholder"></td> |
| 425 |
<td class="elbow-placeholder"></td> |
| 426 |
<td colspan="1"> |
| 427 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 428 |
<b>load_future_min_val</b> |
| 429 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 430 |
<div style="font-size: small"> |
| 431 |
<span style="color: purple">integer</span> |
| 432 |
</div> |
| 433 |
</td> |
| 434 |
<td> |
| 435 |
</td> |
| 436 |
<td> |
| 437 |
<div>Minimum future load threshold value for the quantization process</div> |
| 438 |
<div>Range 0-266338303</div> |
| 439 |
</td> |
| 440 |
</tr> |
| 441 |
<tr> |
| 442 |
<td class="elbow-placeholder"></td> |
| 443 |
<td class="elbow-placeholder"></td> |
| 444 |
<td colspan="1"> |
| 445 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 446 |
<b>load_past_max_val</b> |
| 447 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 448 |
<div style="font-size: small"> |
| 449 |
<span style="color: purple">integer</span> |
| 450 |
</div> |
| 451 |
</td> |
| 452 |
<td> |
| 453 |
</td> |
| 454 |
<td> |
| 455 |
<div>Maximum past load threshold value for the quantization process</div> |
| 456 |
<div>Range 0-10000</div> |
| 457 |
</td> |
| 458 |
</tr> |
| 459 |
<tr> |
| 460 |
<td class="elbow-placeholder"></td> |
| 461 |
<td class="elbow-placeholder"></td> |
| 462 |
<td colspan="1"> |
| 463 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 464 |
<b>load_past_min_val</b> |
| 465 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 466 |
<div style="font-size: small"> |
| 467 |
<span style="color: purple">integer</span> |
| 468 |
</div> |
| 469 |
</td> |
| 470 |
<td> |
| 471 |
</td> |
| 472 |
<td> |
| 473 |
<div>Minimum past load threshold value for the quantization process</div> |
| 474 |
<div>Range 0-10000</div> |
| 475 |
</td> |
| 476 |
</tr> |
| 477 |
<tr> |
| 478 |
<td class="elbow-placeholder"></td> |
| 479 |
<td class="elbow-placeholder"></td> |
| 480 |
<td colspan="1"> |
| 481 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 482 |
<b>name</b> |
| 483 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 484 |
<div style="font-size: small"> |
| 485 |
<span style="color: purple">string</span> |
| 486 |
/ <span style="color: red">required</span> |
| 487 |
</div> |
| 488 |
</td> |
| 489 |
<td> |
| 490 |
</td> |
| 491 |
<td> |
| 492 |
<div>Name of profile</div> |
| 493 |
</td> |
| 494 |
</tr> |
| 495 |
<tr> |
| 496 |
<td class="elbow-placeholder"></td> |
| 497 |
<td class="elbow-placeholder"></td> |
| 498 |
<td colspan="1"> |
| 499 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 500 |
<b>port_load_current</b> |
| 501 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 502 |
<div style="font-size: small"> |
| 503 |
<span style="color: purple">boolean</span> |
| 504 |
</div> |
| 505 |
</td> |
| 506 |
<td> |
| 507 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 508 |
<li>no</li> |
| 509 |
<li>yes</li> |
| 510 |
</ul> |
| 511 |
</td> |
| 512 |
<td> |
| 513 |
<div>Set port load to current sampled value when sampled value is less than the average</div> |
| 514 |
</td> |
| 515 |
</tr> |
| 516 |
<tr> |
| 517 |
<td class="elbow-placeholder"></td> |
| 518 |
<td class="elbow-placeholder"></td> |
| 519 |
<td colspan="1"> |
| 520 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 521 |
<b>port_load_exponent</b> |
| 522 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 523 |
<div style="font-size: small"> |
| 524 |
<span style="color: purple">integer</span> |
| 525 |
</div> |
| 526 |
</td> |
| 527 |
<td> |
| 528 |
</td> |
| 529 |
<td> |
| 530 |
<div>EWMA exponent used in port loading computation</div> |
| 531 |
<div>Range 1-16</div> |
| 532 |
</td> |
| 533 |
</tr> |
| 534 |
<tr> |
| 535 |
<td class="elbow-placeholder"></td> |
| 536 |
<td class="elbow-placeholder"></td> |
| 537 |
<td colspan="1"> |
| 538 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 539 |
<b>port_load_future</b> |
| 540 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 541 |
<div style="font-size: small"> |
| 542 |
<span style="color: purple">boolean</span> |
| 543 |
</div> |
| 544 |
</td> |
| 545 |
<td> |
| 546 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 547 |
<li>no</li> |
| 548 |
<li>yes</li> |
| 549 |
</ul> |
| 550 |
</td> |
| 551 |
<td> |
| 552 |
<div>Enable/disable future port load, the average queued bytes measured on a port</div> |
| 553 |
</td> |
| 554 |
</tr> |
| 555 |
<tr> |
| 556 |
<td class="elbow-placeholder"></td> |
| 557 |
<td class="elbow-placeholder"></td> |
| 558 |
<td colspan="1"> |
| 559 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 560 |
<b>port_load_future_weight</b> |
| 561 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 562 |
<div style="font-size: small"> |
| 563 |
<span style="color: purple">integer</span> |
| 564 |
</div> |
| 565 |
</td> |
| 566 |
<td> |
| 567 |
</td> |
| 568 |
<td> |
| 569 |
<div>Weight of future port load used in EWMA calculations</div> |
| 570 |
<div>Range 1-16</div> |
| 571 |
</td> |
| 572 |
</tr> |
| 573 |
<tr> |
| 574 |
<td class="elbow-placeholder"></td> |
| 575 |
<td class="elbow-placeholder"></td> |
| 576 |
<td colspan="1"> |
| 577 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 578 |
<b>port_load_past</b> |
| 579 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 580 |
<div style="font-size: small"> |
| 581 |
<span style="color: purple">boolean</span> |
| 582 |
</div> |
| 583 |
</td> |
| 584 |
<td> |
| 585 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 586 |
<li>no</li> |
| 587 |
<li>yes</li> |
| 588 |
</ul> |
| 589 |
</td> |
| 590 |
<td> |
| 591 |
<div>Enable/disable past port load, the average egress bytes measured on a port</div> |
| 592 |
</td> |
| 593 |
</tr> |
| 594 |
<tr> |
| 595 |
<td class="elbow-placeholder"></td> |
| 596 |
<td class="elbow-placeholder"></td> |
| 597 |
<td colspan="1"> |
| 598 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 599 |
<b>port_load_past_weight</b> |
| 600 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 601 |
<div style="font-size: small"> |
| 602 |
<span style="color: purple">integer</span> |
| 603 |
</div> |
| 604 |
</td> |
| 605 |
<td> |
| 606 |
</td> |
| 607 |
<td> |
| 608 |
<div>Weight of past port load used in EWMA calculations</div> |
| 609 |
<div>Range 1-16</div> |
| 610 |
</td> |
| 611 |
</tr> |
| 612 |
<tr> |
| 613 |
<td class="elbow-placeholder"></td> |
| 614 |
<td class="elbow-placeholder"></td> |
| 615 |
<td colspan="1"> |
| 616 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 617 |
<b>random_seed</b> |
| 618 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 619 |
<div style="font-size: small"> |
| 620 |
<span style="color: purple">integer</span> |
| 621 |
</div> |
| 622 |
</td> |
| 623 |
<td> |
| 624 |
</td> |
| 625 |
<td> |
| 626 |
<div>Random seed value</div> |
| 627 |
<div>Range 0-16777214</div> |
| 628 |
</td> |
| 629 |
</tr> |
| 630 |
<tr> |
| 631 |
<td class="elbow-placeholder"></td> |
| 632 |
<td class="elbow-placeholder"></td> |
| 633 |
<td colspan="1"> |
| 634 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 635 |
<b>sampling_interval</b> |
| 636 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 637 |
<div style="font-size: small"> |
| 638 |
<span style="color: purple">integer</span> |
| 639 |
</div> |
| 640 |
</td> |
| 641 |
<td> |
| 642 |
</td> |
| 643 |
<td> |
| 644 |
<div>Sampling interval in microseconds</div> |
| 645 |
<div>Range 1-255</div> |
| 646 |
</td> |
| 647 |
</tr> |
| 648 |
|
| 649 |
<tr> |
| 650 |
<td class="elbow-placeholder"></td> |
| 651 |
<td colspan="2"> |
| 652 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 653 |
<b>switch_binding</b> |
| 654 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 655 |
<div style="font-size: small"> |
| 656 |
<span style="color: purple">dictionary</span> |
| 657 |
</div> |
| 658 |
</td> |
| 659 |
<td> |
| 660 |
</td> |
| 661 |
<td> |
| 662 |
<div>ARS switch binding configuration</div> |
| 663 |
</td> |
| 664 |
</tr> |
| 665 |
<tr> |
| 666 |
<td class="elbow-placeholder"></td> |
| 667 |
<td class="elbow-placeholder"></td> |
| 668 |
<td colspan="1"> |
| 669 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 670 |
<b>profile</b> |
| 671 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 672 |
<div style="font-size: small"> |
| 673 |
<span style="color: purple">string</span> |
| 674 |
</div> |
| 675 |
</td> |
| 676 |
<td> |
| 677 |
</td> |
| 678 |
<td> |
| 679 |
<div>ARS profile to bind to switch</div> |
| 680 |
</td> |
| 681 |
</tr> |
| 682 |
|
| 683 |
|
| 684 |
<tr> |
| 685 |
<td colspan="3"> |
| 686 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 687 |
<b>state</b> |
| 688 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 689 |
<div style="font-size: small"> |
| 690 |
<span style="color: purple">string</span> |
| 691 |
</div> |
| 692 |
</td> |
| 693 |
<td> |
| 694 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 695 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 696 |
<li>deleted</li> |
| 697 |
<li>replaced</li> |
| 698 |
<li>overridden</li> |
| 699 |
</ul> |
| 700 |
</td> |
| 701 |
<td> |
| 702 |
<div>The state of the configuration after module completion</div> |
| 703 |
</td> |
| 704 |
</tr> |
| 705 |
</table> |
| 706 |
<br/> |
| 707 |
|
| 708 |
|
| 709 |
Notes |
| 710 |
----- |
| 711 |
|
| 712 |
.. note:: |
| 713 |
- Tested against Enterprise SONiC Distribution by Dell Technologies. |
| 714 |
- Supports ``check_mode``. |
| 715 |
|
| 716 |
|
| 717 |
|
| 718 |
Examples |
| 719 |
-------- |
| 720 |
|
| 721 |
.. code-block:: yaml |
| 722 |
|
| 723 |
# Using "merged" state |
| 724 |
# |
| 725 |
# Before state: |
| 726 |
# ------------- |
| 727 |
# |
| 728 |
# sonic# show running-configuration ars |
| 729 |
# (No ARS configuration present) |
| 730 |
|
| 731 |
- name: Merge ARS configuration |
| 732 |
dellemc.enterprise_sonic.sonic_ars: |
| 733 |
config: |
| 734 |
ars_objects: |
| 735 |
- name: obj1 |
| 736 |
idle_time: 100 |
| 737 |
max_flows: 1024 |
| 738 |
mode: flowlet-quality |
| 739 |
port_profiles: |
| 740 |
- name: pp1 |
| 741 |
enable: true |
| 742 |
load_future_weight: 9 |
| 743 |
load_past_weight: 20 |
| 744 |
load_scaling_factor: 0 |
| 745 |
profiles: |
| 746 |
- name: p1 |
| 747 |
algorithm: EWMA |
| 748 |
load_current_max_val: 10000 |
| 749 |
load_current_min_val: 100 |
| 750 |
load_future_max_val: 20000 |
| 751 |
load_future_min_val: 200 |
| 752 |
load_past_max_val: 500 |
| 753 |
load_past_min_val: 50 |
| 754 |
port_load_current: true |
| 755 |
port_load_exponent: 7 |
| 756 |
port_load_future: true |
| 757 |
port_load_future_weight: 9 |
| 758 |
port_load_past: true |
| 759 |
port_load_past_weight: 11 |
| 760 |
random_seed: 800000 |
| 761 |
sampling_interval: 140 |
| 762 |
port_bindings: |
| 763 |
- name: Ethernet20 |
| 764 |
profile: pp1 |
| 765 |
switch_binding: |
| 766 |
profile: p1 |
| 767 |
state: merged |
| 768 |
|
| 769 |
# After state: |
| 770 |
# ------------ |
| 771 |
# |
| 772 |
# sonic# show running-configuration ars |
| 773 |
# ars profile p1 |
| 774 |
# sampling-interval 140 |
| 775 |
# random-seed 800000 |
| 776 |
# port-load-past-weight 11 |
| 777 |
# port-load-future-weight 9 |
| 778 |
# port-load-current |
| 779 |
# port-load-exponent 7 |
| 780 |
# load-past-min-val 50 |
| 781 |
# load-past-max-val 500 |
| 782 |
# load-future-min-val 200 |
| 783 |
# load-future-max-val 20000 |
| 784 |
# load-current-min-val 100 |
| 785 |
# load-current-max-val 10000 |
| 786 |
# ! |
| 787 |
# ars port-profile pp1 |
| 788 |
# enable |
| 789 |
# load-past-weight 20 |
| 790 |
# load-future-weight 9 |
| 791 |
# ! |
| 792 |
# ars object obj1 |
| 793 |
# idle-time 100 |
| 794 |
# max-flows 1024 |
| 795 |
# ! |
| 796 |
# interface Ethernet20 |
| 797 |
# mtu 9100 |
| 798 |
# speed 400000 |
| 799 |
# fec RS |
| 800 |
# unreliable-los auto |
| 801 |
# shutdown |
| 802 |
# ars bind pp1 |
| 803 |
# ! |
| 804 |
# ars bind profile p1 |
| 805 |
|
| 806 |
|
| 807 |
# Using "replaced" state |
| 808 |
# |
| 809 |
# Before state: |
| 810 |
# ------------- |
| 811 |
# |
| 812 |
# sonic# show running-configuration ars |
| 813 |
# ars profile p1 |
| 814 |
# sampling-interval 140 |
| 815 |
# random-seed 800000 |
| 816 |
# port-load-past-weight 11 |
| 817 |
# port-load-future-weight 9 |
| 818 |
# port-load-current |
| 819 |
# port-load-exponent 7 |
| 820 |
# load-past-min-val 50 |
| 821 |
# load-past-max-val 500 |
| 822 |
# load-future-min-val 200 |
| 823 |
# load-future-max-val 20000 |
| 824 |
# load-current-min-val 100 |
| 825 |
# load-current-max-val 10000 |
| 826 |
# ! |
| 827 |
# ars port-profile pp1 |
| 828 |
# enable |
| 829 |
# load-past-weight 20 |
| 830 |
# load-future-weight 9 |
| 831 |
# ! |
| 832 |
# ars object obj1 |
| 833 |
# idle-time 100 |
| 834 |
# max-flows 1024 |
| 835 |
# ! |
| 836 |
# interface Ethernet20 |
| 837 |
# mtu 9100 |
| 838 |
# speed 400000 |
| 839 |
# fec RS |
| 840 |
# unreliable-los auto |
| 841 |
# shutdown |
| 842 |
# ars bind pp1 |
| 843 |
# ! |
| 844 |
# ars bind profile p1 |
| 845 |
|
| 846 |
- name: Replace ARS configuration |
| 847 |
dellemc.enterprise_sonic.sonic_ars: |
| 848 |
config: |
| 849 |
port_profiles: |
| 850 |
- name: pp2 |
| 851 |
enable: true |
| 852 |
load_future_weight: 8 |
| 853 |
load_past_weight: 15 |
| 854 |
port_bindings: |
| 855 |
- name: Ethernet20 |
| 856 |
profile: pp2 |
| 857 |
state: replaced |
| 858 |
|
| 859 |
# After state: |
| 860 |
# ------------ |
| 861 |
# |
| 862 |
# sonic# show running-configuration ars |
| 863 |
# ars profile p1 |
| 864 |
# sampling-interval 140 |
| 865 |
# random-seed 800000 |
| 866 |
# port-load-past-weight 11 |
| 867 |
# port-load-future-weight 9 |
| 868 |
# port-load-current |
| 869 |
# port-load-exponent 7 |
| 870 |
# load-past-min-val 50 |
| 871 |
# load-past-max-val 500 |
| 872 |
# load-future-min-val 200 |
| 873 |
# load-future-max-val 20000 |
| 874 |
# load-current-min-val 100 |
| 875 |
# load-current-max-val 10000 |
| 876 |
# ! |
| 877 |
# ars port-profile pp2 |
| 878 |
# enable |
| 879 |
# load-past-weight 15 |
| 880 |
# load-future-weight 8 |
| 881 |
# ! |
| 882 |
# ars object obj1 |
| 883 |
# idle-time 100 |
| 884 |
# max-flows 1024 |
| 885 |
# ! |
| 886 |
# interface Ethernet20 |
| 887 |
# mtu 9100 |
| 888 |
# speed 400000 |
| 889 |
# fec RS |
| 890 |
# unreliable-los auto |
| 891 |
# shutdown |
| 892 |
# ars bind pp2 |
| 893 |
# ! |
| 894 |
# ars bind profile p1 |
| 895 |
|
| 896 |
|
| 897 |
# Using "overridden" state |
| 898 |
# |
| 899 |
# Before state: |
| 900 |
# ------------- |
| 901 |
# |
| 902 |
# sonic# show running-configuration ars |
| 903 |
# ars profile p1 |
| 904 |
# sampling-interval 140 |
| 905 |
# random-seed 800000 |
| 906 |
# port-load-past-weight 11 |
| 907 |
# port-load-future-weight 9 |
| 908 |
# port-load-current |
| 909 |
# port-load-exponent 7 |
| 910 |
# load-past-min-val 50 |
| 911 |
# load-past-max-val 500 |
| 912 |
# load-future-min-val 200 |
| 913 |
# load-future-max-val 20000 |
| 914 |
# load-current-min-val 100 |
| 915 |
# load-current-max-val 10000 |
| 916 |
# ! |
| 917 |
# ars port-profile pp2 |
| 918 |
# enable |
| 919 |
# load-past-weight 15 |
| 920 |
# load-future-weight 8 |
| 921 |
# ! |
| 922 |
# ars object obj1 |
| 923 |
# idle-time 100 |
| 924 |
# max-flows 1024 |
| 925 |
# ! |
| 926 |
# interface Ethernet20 |
| 927 |
# mtu 9100 |
| 928 |
# speed 400000 |
| 929 |
# fec RS |
| 930 |
# unreliable-los auto |
| 931 |
# shutdown |
| 932 |
# ars bind pp1 |
| 933 |
# ! |
| 934 |
# ars bind profile p1 |
| 935 |
|
| 936 |
- name: Override ARS configuration |
| 937 |
dellemc.enterprise_sonic.sonic_ars: |
| 938 |
config: |
| 939 |
ars_objects: |
| 940 |
- name: obj4 |
| 941 |
idle_time: 65 |
| 942 |
max_flows: 4096 |
| 943 |
mode: flowlet-quality |
| 944 |
state: overridden |
| 945 |
|
| 946 |
# After state: |
| 947 |
# ------------ |
| 948 |
# |
| 949 |
# sonic# show running-configuration ars |
| 950 |
# ars object obj4 |
| 951 |
# idle-time 65 |
| 952 |
# max-flows 4096 |
| 953 |
|
| 954 |
|
| 955 |
# Using "deleted" state |
| 956 |
# |
| 957 |
# Before state: |
| 958 |
# ------------- |
| 959 |
# |
| 960 |
# sonic# show running-configuration ars |
| 961 |
# ars profile p1 |
| 962 |
# sampling-interval 140 |
| 963 |
# random-seed 800000 |
| 964 |
# port-load-past-weight 11 |
| 965 |
# port-load-future-weight 9 |
| 966 |
# port-load-current |
| 967 |
# port-load-exponent 7 |
| 968 |
# load-past-min-val 50 |
| 969 |
# load-past-max-val 500 |
| 970 |
# load-future-min-val 200 |
| 971 |
# load-future-max-val 20000 |
| 972 |
# load-current-min-val 100 |
| 973 |
# load-current-max-val 10000 |
| 974 |
# ! |
| 975 |
# ars port-profile pp2 |
| 976 |
# enable |
| 977 |
# load-past-weight 15 |
| 978 |
# load-future-weight 8 |
| 979 |
|
| 980 |
- name: Delete specified ARS configuration |
| 981 |
dellemc.enterprise_sonic.sonic_ars: |
| 982 |
config: |
| 983 |
port_profiles: |
| 984 |
- name: pp2 |
| 985 |
profiles: |
| 986 |
- name: p1 |
| 987 |
load_current_max_val: 10000 |
| 988 |
load_future_max_val: 20000 |
| 989 |
load_past_max_val: 500 |
| 990 |
random_seed: 800000 |
| 991 |
sampling_interval: 140 |
| 992 |
state: deleted |
| 993 |
|
| 994 |
# After state: |
| 995 |
# ------------ |
| 996 |
# |
| 997 |
# sonic# show running-configuration ars |
| 998 |
# ars profile p1 |
| 999 |
# port-load-past-weight 11 |
| 1000 |
# port-load-future-weight 9 |
| 1001 |
# port-load-current |
| 1002 |
# port-load-exponent 7 |
| 1003 |
# load-past-min-val 50 |
| 1004 |
# load-future-min-val 200 |
| 1005 |
# load-current-min-val 100 |
| 1006 |
|
| 1007 |
|
| 1008 |
# Using "deleted" state |
| 1009 |
# |
| 1010 |
# Before state: |
| 1011 |
# ------------- |
| 1012 |
# |
| 1013 |
# sonic# show running-configuration ars |
| 1014 |
# ars profile p1 |
| 1015 |
# sampling-interval 140 |
| 1016 |
# random-seed 800000 |
| 1017 |
# port-load-past-weight 11 |
| 1018 |
# port-load-future-weight 9 |
| 1019 |
# port-load-current |
| 1020 |
# port-load-exponent 7 |
| 1021 |
# load-past-min-val 50 |
| 1022 |
# load-past-max-val 500 |
| 1023 |
# load-future-min-val 200 |
| 1024 |
# load-future-max-val 20000 |
| 1025 |
# load-current-min-val 100 |
| 1026 |
# load-current-max-val 10000 |
| 1027 |
# ! |
| 1028 |
# ars port-profile pp1 |
| 1029 |
# enable |
| 1030 |
# load-past-weight 20 |
| 1031 |
# load-future-weight 9 |
| 1032 |
# ! |
| 1033 |
# ars object obj1 |
| 1034 |
# idle-time 100 |
| 1035 |
# max-flows 1024 |
| 1036 |
# ! |
| 1037 |
# interface Ethernet20 |
| 1038 |
# mtu 9100 |
| 1039 |
# speed 400000 |
| 1040 |
# fec RS |
| 1041 |
# unreliable-los auto |
| 1042 |
# shutdown |
| 1043 |
# ars bind pp1 |
| 1044 |
# ! |
| 1045 |
# ars bind profile p1 |
| 1046 |
|
| 1047 |
- name: Delete all ARS configuration |
| 1048 |
dellemc.enterprise_sonic.sonic_ars: |
| 1049 |
config: |
| 1050 |
state: deleted |
| 1051 |
|
| 1052 |
# After state: |
| 1053 |
# ------------ |
| 1054 |
# |
| 1055 |
# sonic# show running-configuration ars |
| 1056 |
# (No ARS configuration present) |
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
Return Values |
| 1061 |
------------- |
| 1062 |
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: |
| 1063 |
|
| 1064 |
.. raw:: html |
| 1065 |
|
| 1066 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 1067 |
<tr> |
| 1068 |
<th colspan="1">Key</th> |
| 1069 |
<th>Returned</th> |
| 1070 |
<th width="100%">Description</th> |
| 1071 |
</tr> |
| 1072 |
<tr> |
| 1073 |
<td colspan="1"> |
| 1074 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1075 |
<b>after</b> |
| 1076 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1077 |
<div style="font-size: small"> |
| 1078 |
<span style="color: purple">dictionary</span> |
| 1079 |
</div> |
| 1080 |
</td> |
| 1081 |
<td>when changed</td> |
| 1082 |
<td> |
| 1083 |
<div>The configuration resulting from module invocation.</div> |
| 1084 |
<br/> |
| 1085 |
</td> |
| 1086 |
</tr> |
| 1087 |
<tr> |
| 1088 |
<td colspan="1"> |
| 1089 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1090 |
<b>after_generated</b> |
| 1091 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1092 |
<div style="font-size: small"> |
| 1093 |
<span style="color: purple">dictionary</span> |
| 1094 |
</div> |
| 1095 |
</td> |
| 1096 |
<td>when <code>check_mode</code></td> |
| 1097 |
<td> |
| 1098 |
<div>The generated configuration from module invocation.</div> |
| 1099 |
<br/> |
| 1100 |
</td> |
| 1101 |
</tr> |
| 1102 |
<tr> |
| 1103 |
<td colspan="1"> |
| 1104 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1105 |
<b>before</b> |
| 1106 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1107 |
<div style="font-size: small"> |
| 1108 |
<span style="color: purple">dictionary</span> |
| 1109 |
</div> |
| 1110 |
</td> |
| 1111 |
<td>always</td> |
| 1112 |
<td> |
| 1113 |
<div>The configuration prior to the module invocation.</div> |
| 1114 |
<br/> |
| 1115 |
</td> |
| 1116 |
</tr> |
| 1117 |
<tr> |
| 1118 |
<td colspan="1"> |
| 1119 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 1120 |
<b>commands</b> |
| 1121 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 1122 |
<div style="font-size: small"> |
| 1123 |
<span style="color: purple">list</span> |
| 1124 |
</div> |
| 1125 |
</td> |
| 1126 |
<td>always</td> |
| 1127 |
<td> |
| 1128 |
<div>The set of commands pushed to the remote device.</div> |
| 1129 |
<br/> |
| 1130 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 1131 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['command 1', 'command 2', 'command 3']</div> |
| 1132 |
</td> |
| 1133 |
</tr> |
| 1134 |
</table> |
| 1135 |
<br/><br/> |
| 1136 |
|
| 1137 |
|
| 1138 |
Status |
| 1139 |
------ |
| 1140 |
|
| 1141 |
|
| 1142 |
Authors |
| 1143 |
~~~~~~~ |
| 1144 |
|
| 1145 |
- S\. Talabi (@stalabi1) |