| 1 |
.. _dellemc.enterprise_sonic.sonic_fbs_interfaces_module: |
| 2 |
|
| 3 |
|
| 4 |
********************************************* |
| 5 |
dellemc.enterprise_sonic.sonic_fbs_interfaces |
| 6 |
********************************************* |
| 7 |
|
| 8 |
**Manage flow based services (FBS) interfaces configuration on SONiC** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 4.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module provides configuration management of FBS interfaces 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="4">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="4"> |
| 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>FBS interfaces configuration</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="elbow-placeholder"></td> |
| 54 |
<td colspan="3"> |
| 55 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 56 |
<b>egress_policies</b> |
| 57 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 58 |
<div style="font-size: small"> |
| 59 |
<span style="color: purple">dictionary</span> |
| 60 |
</div> |
| 61 |
</td> |
| 62 |
<td> |
| 63 |
</td> |
| 64 |
<td> |
| 65 |
<div>Egress policies configuration for the interface</div> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<td class="elbow-placeholder"></td> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="2"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>qos</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">dictionary</span> |
| 77 |
</div> |
| 78 |
</td> |
| 79 |
<td> |
| 80 |
</td> |
| 81 |
<td> |
| 82 |
<div>QoS policy</div> |
| 83 |
</td> |
| 84 |
</tr> |
| 85 |
<tr> |
| 86 |
<td class="elbow-placeholder"></td> |
| 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>policy_name</b> |
| 92 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 93 |
<div style="font-size: small"> |
| 94 |
<span style="color: purple">string</span> |
| 95 |
</div> |
| 96 |
</td> |
| 97 |
<td> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
<div>Name of QoS policy</div> |
| 101 |
</td> |
| 102 |
</tr> |
| 103 |
|
| 104 |
|
| 105 |
<tr> |
| 106 |
<td class="elbow-placeholder"></td> |
| 107 |
<td colspan="3"> |
| 108 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 109 |
<b>ingress_policies</b> |
| 110 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 111 |
<div style="font-size: small"> |
| 112 |
<span style="color: purple">dictionary</span> |
| 113 |
</div> |
| 114 |
</td> |
| 115 |
<td> |
| 116 |
</td> |
| 117 |
<td> |
| 118 |
<div>Ingress policies configuration for the interface</div> |
| 119 |
</td> |
| 120 |
</tr> |
| 121 |
<tr> |
| 122 |
<td class="elbow-placeholder"></td> |
| 123 |
<td class="elbow-placeholder"></td> |
| 124 |
<td colspan="2"> |
| 125 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 126 |
<b>forwarding</b> |
| 127 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 128 |
<div style="font-size: small"> |
| 129 |
<span style="color: purple">dictionary</span> |
| 130 |
</div> |
| 131 |
</td> |
| 132 |
<td> |
| 133 |
</td> |
| 134 |
<td> |
| 135 |
<div>Forwarding policy</div> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
<tr> |
| 139 |
<td class="elbow-placeholder"></td> |
| 140 |
<td class="elbow-placeholder"></td> |
| 141 |
<td class="elbow-placeholder"></td> |
| 142 |
<td colspan="1"> |
| 143 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 144 |
<b>policy_name</b> |
| 145 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 146 |
<div style="font-size: small"> |
| 147 |
<span style="color: purple">string</span> |
| 148 |
</div> |
| 149 |
</td> |
| 150 |
<td> |
| 151 |
</td> |
| 152 |
<td> |
| 153 |
<div>Name of forwarding policy</div> |
| 154 |
</td> |
| 155 |
</tr> |
| 156 |
|
| 157 |
<tr> |
| 158 |
<td class="elbow-placeholder"></td> |
| 159 |
<td class="elbow-placeholder"></td> |
| 160 |
<td colspan="2"> |
| 161 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 162 |
<b>monitoring</b> |
| 163 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 164 |
<div style="font-size: small"> |
| 165 |
<span style="color: purple">dictionary</span> |
| 166 |
</div> |
| 167 |
</td> |
| 168 |
<td> |
| 169 |
</td> |
| 170 |
<td> |
| 171 |
<div>Monitoring policy</div> |
| 172 |
</td> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<td class="elbow-placeholder"></td> |
| 176 |
<td class="elbow-placeholder"></td> |
| 177 |
<td class="elbow-placeholder"></td> |
| 178 |
<td colspan="1"> |
| 179 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 180 |
<b>policy_name</b> |
| 181 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 182 |
<div style="font-size: small"> |
| 183 |
<span style="color: purple">string</span> |
| 184 |
</div> |
| 185 |
</td> |
| 186 |
<td> |
| 187 |
</td> |
| 188 |
<td> |
| 189 |
<div>Name of monitoring policy</div> |
| 190 |
</td> |
| 191 |
</tr> |
| 192 |
|
| 193 |
<tr> |
| 194 |
<td class="elbow-placeholder"></td> |
| 195 |
<td class="elbow-placeholder"></td> |
| 196 |
<td colspan="2"> |
| 197 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 198 |
<b>qos</b> |
| 199 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 200 |
<div style="font-size: small"> |
| 201 |
<span style="color: purple">dictionary</span> |
| 202 |
</div> |
| 203 |
</td> |
| 204 |
<td> |
| 205 |
</td> |
| 206 |
<td> |
| 207 |
<div>QoS policy</div> |
| 208 |
</td> |
| 209 |
</tr> |
| 210 |
<tr> |
| 211 |
<td class="elbow-placeholder"></td> |
| 212 |
<td class="elbow-placeholder"></td> |
| 213 |
<td class="elbow-placeholder"></td> |
| 214 |
<td colspan="1"> |
| 215 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 216 |
<b>policy_name</b> |
| 217 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 218 |
<div style="font-size: small"> |
| 219 |
<span style="color: purple">string</span> |
| 220 |
</div> |
| 221 |
</td> |
| 222 |
<td> |
| 223 |
</td> |
| 224 |
<td> |
| 225 |
<div>Name of QoS policy</div> |
| 226 |
</td> |
| 227 |
</tr> |
| 228 |
|
| 229 |
|
| 230 |
<tr> |
| 231 |
<td class="elbow-placeholder"></td> |
| 232 |
<td colspan="3"> |
| 233 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 234 |
<b>name</b> |
| 235 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 236 |
<div style="font-size: small"> |
| 237 |
<span style="color: purple">string</span> |
| 238 |
/ <span style="color: red">required</span> |
| 239 |
</div> |
| 240 |
</td> |
| 241 |
<td> |
| 242 |
</td> |
| 243 |
<td> |
| 244 |
<div>Name of interface</div> |
| 245 |
</td> |
| 246 |
</tr> |
| 247 |
|
| 248 |
<tr> |
| 249 |
<td colspan="4"> |
| 250 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 251 |
<b>state</b> |
| 252 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 253 |
<div style="font-size: small"> |
| 254 |
<span style="color: purple">string</span> |
| 255 |
</div> |
| 256 |
</td> |
| 257 |
<td> |
| 258 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 259 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 260 |
<li>deleted</li> |
| 261 |
<li>replaced</li> |
| 262 |
<li>overridden</li> |
| 263 |
</ul> |
| 264 |
</td> |
| 265 |
<td> |
| 266 |
<div>The state of the configuration after module completion</div> |
| 267 |
</td> |
| 268 |
</tr> |
| 269 |
</table> |
| 270 |
<br/> |
| 271 |
|
| 272 |
|
| 273 |
Notes |
| 274 |
----- |
| 275 |
|
| 276 |
.. note:: |
| 277 |
- Tested against Enterprise SONiC Distribution by Dell Technologies. |
| 278 |
- Supports ``check_mode``. |
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
Examples |
| 283 |
-------- |
| 284 |
|
| 285 |
.. code-block:: yaml |
| 286 |
|
| 287 |
# Using "merged" state |
| 288 |
# |
| 289 |
# Before state: |
| 290 |
# ------------- |
| 291 |
# |
| 292 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 293 |
# (No 'service-policy' configuration present) |
| 294 |
|
| 295 |
- name: Merge FBS interfaces configuration |
| 296 |
dellemc.enterprise_sonic.sonic_fbs_interfaces: |
| 297 |
config: |
| 298 |
- name: Eth1/5 |
| 299 |
ingress_policies: |
| 300 |
forwarding: |
| 301 |
policy_name: fwd_policy |
| 302 |
monitoring: |
| 303 |
policy_name: monitoring_policy |
| 304 |
qos: |
| 305 |
policy_name: qos_policy |
| 306 |
egress_policies: |
| 307 |
qos: |
| 308 |
policy_name: qos_policy |
| 309 |
state: merged |
| 310 |
|
| 311 |
# After state: |
| 312 |
# ------------ |
| 313 |
# |
| 314 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 315 |
# service-policy type qos in qos_policy |
| 316 |
# service-policy type monitoring in monitoring_policy |
| 317 |
# service-policy type forwarding in fwd_policy |
| 318 |
# service-policy type qos out qos_policy |
| 319 |
|
| 320 |
|
| 321 |
# Using "replaced" state |
| 322 |
# |
| 323 |
# Before state: |
| 324 |
# ------------- |
| 325 |
# |
| 326 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 327 |
# service-policy type qos in qos_policy |
| 328 |
# service-policy type monitoring in monitoring_policy |
| 329 |
# service-policy type forwarding in fwd_policy |
| 330 |
# service-policy type qos out qos_policy |
| 331 |
# sonic# show running-configuration interface Eth 1/7 | grep service-policy |
| 332 |
# service-policy type qos out qos_policy |
| 333 |
|
| 334 |
- name: Replace FBS interfaces configuration |
| 335 |
dellemc.enterprise_sonic.sonic_fbs_interfaces: |
| 336 |
config: |
| 337 |
- name: Eth1/5 |
| 338 |
ingress_policies: |
| 339 |
forwarding: |
| 340 |
policy_name: fwd_policy |
| 341 |
state: replaced |
| 342 |
|
| 343 |
# After state: |
| 344 |
# ------------ |
| 345 |
# |
| 346 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 347 |
# service-policy type forwarding in fwd_policy |
| 348 |
# sonic# show running-configuration interface Eth 1/7 | grep service-policy |
| 349 |
# service-policy type qos out qos_policy |
| 350 |
|
| 351 |
|
| 352 |
# Using "overridden" state |
| 353 |
# |
| 354 |
# Before state: |
| 355 |
# ------------- |
| 356 |
# |
| 357 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 358 |
# service-policy type qos in qos_policy |
| 359 |
# service-policy type monitoring in monitoring_policy |
| 360 |
# service-policy type forwarding in fwd_policy |
| 361 |
# service-policy type qos out qos_policy |
| 362 |
|
| 363 |
- name: Override FBS interfaces configuration |
| 364 |
dellemc.enterprise_sonic.sonic_fbs_interfaces: |
| 365 |
config: |
| 366 |
- name: Eth1/7 |
| 367 |
egress_policies: |
| 368 |
qos: |
| 369 |
policy_name: qos_policy |
| 370 |
state: overridden |
| 371 |
|
| 372 |
# After state: |
| 373 |
# ------------ |
| 374 |
# |
| 375 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 376 |
# (No 'service-policy' configuration present) |
| 377 |
# sonic# show running-configuration interface Eth 1/7 | grep service-policy |
| 378 |
# service-policy type qos out qos_policy |
| 379 |
|
| 380 |
|
| 381 |
# Using "deleted" state |
| 382 |
# |
| 383 |
# Before state: |
| 384 |
# ------------- |
| 385 |
# |
| 386 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 387 |
# service-policy type qos in qos_policy |
| 388 |
# service-policy type monitoring in monitoring_policy |
| 389 |
# service-policy type forwarding in fwd_policy |
| 390 |
# service-policy type qos out qos_policy |
| 391 |
|
| 392 |
- name: Delete FBS interfaces configuration |
| 393 |
dellemc.enterprise_sonic.sonic_fbs_interfaces: |
| 394 |
config: |
| 395 |
- name: Eth1/5 |
| 396 |
ingress_policies: |
| 397 |
forwarding: |
| 398 |
policy_name: fwd_policy |
| 399 |
monitoring: |
| 400 |
policy_name: monitoring_policy |
| 401 |
state: deleted |
| 402 |
|
| 403 |
# After state: |
| 404 |
# ------------ |
| 405 |
# |
| 406 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 407 |
# service-policy type qos in qos_policy |
| 408 |
# service-policy type qos out qos_policy |
| 409 |
|
| 410 |
|
| 411 |
# Using "deleted" state |
| 412 |
# |
| 413 |
# Before state: |
| 414 |
# ------------- |
| 415 |
# |
| 416 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 417 |
# service-policy type qos in qos_policy |
| 418 |
# service-policy type monitoring in monitoring_policy |
| 419 |
# service-policy type forwarding in fwd_policy |
| 420 |
# service-policy type qos out qos_policy |
| 421 |
# sonic# show running-configuration interface Eth 1/7 | grep service-policy |
| 422 |
# service-policy type qos out qos_policy |
| 423 |
|
| 424 |
- name: Delete all FBS interfaces configuration |
| 425 |
dellemc.enterprise_sonic.sonic_fbs_interfaces: |
| 426 |
config: |
| 427 |
state: deleted |
| 428 |
|
| 429 |
# After state: |
| 430 |
# ------------ |
| 431 |
# |
| 432 |
# sonic# show running-configuration interface Eth 1/5 | grep service-policy |
| 433 |
# (No 'service-policy' configuration present) |
| 434 |
# sonic# show running-configuration interface Eth 1/7 | grep service-policy |
| 435 |
# (No 'service-policy' configuration present) |
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
Return Values |
| 440 |
------------- |
| 441 |
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: |
| 442 |
|
| 443 |
.. raw:: html |
| 444 |
|
| 445 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 446 |
<tr> |
| 447 |
<th colspan="1">Key</th> |
| 448 |
<th>Returned</th> |
| 449 |
<th width="100%">Description</th> |
| 450 |
</tr> |
| 451 |
<tr> |
| 452 |
<td colspan="1"> |
| 453 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 454 |
<b>after</b> |
| 455 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 456 |
<div style="font-size: small"> |
| 457 |
<span style="color: purple">list</span> |
| 458 |
</div> |
| 459 |
</td> |
| 460 |
<td>when changed</td> |
| 461 |
<td> |
| 462 |
<div>The resulting configuration from module invocation.</div> |
| 463 |
<br/> |
| 464 |
</td> |
| 465 |
</tr> |
| 466 |
<tr> |
| 467 |
<td colspan="1"> |
| 468 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 469 |
<b>after_generated</b> |
| 470 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 471 |
<div style="font-size: small"> |
| 472 |
<span style="color: purple">list</span> |
| 473 |
</div> |
| 474 |
</td> |
| 475 |
<td>when <code>check_mode</code></td> |
| 476 |
<td> |
| 477 |
<div>The generated configuration from module invocation.</div> |
| 478 |
<br/> |
| 479 |
</td> |
| 480 |
</tr> |
| 481 |
<tr> |
| 482 |
<td colspan="1"> |
| 483 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 484 |
<b>before</b> |
| 485 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 486 |
<div style="font-size: small"> |
| 487 |
<span style="color: purple">list</span> |
| 488 |
</div> |
| 489 |
</td> |
| 490 |
<td>always</td> |
| 491 |
<td> |
| 492 |
<div>The configuration prior to the module invocation.</div> |
| 493 |
<br/> |
| 494 |
</td> |
| 495 |
</tr> |
| 496 |
<tr> |
| 497 |
<td colspan="1"> |
| 498 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 499 |
<b>commands</b> |
| 500 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 501 |
<div style="font-size: small"> |
| 502 |
<span style="color: purple">list</span> |
| 503 |
</div> |
| 504 |
</td> |
| 505 |
<td>always</td> |
| 506 |
<td> |
| 507 |
<div>The set of commands pushed to the remote device.</div> |
| 508 |
<br/> |
| 509 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 510 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['command 1', 'command 2', 'command 3']</div> |
| 511 |
</td> |
| 512 |
</tr> |
| 513 |
</table> |
| 514 |
<br/><br/> |
| 515 |
|
| 516 |
|
| 517 |
Status |
| 518 |
------ |
| 519 |
|
| 520 |
|
| 521 |
Authors |
| 522 |
~~~~~~~ |
| 523 |
|
| 524 |
- S\. Talabi (@stalabi1) |