mellanox.onyx.onyx_traffic_class module – Configures Traffic Class
Note
This module is part of the mellanox.onyx collection (version 1.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install mellanox.onyx
.
To use it in a playbook, specify: mellanox.onyx.onyx_traffic_class
.
Synopsis
This module provides declarative management of Traffic Class configuration on Mellanox ONYX network devices.
Parameters
Parameter |
Comments |
---|---|
configure congestion control on interface. |
|
congestion control type. Choices:
|
|
Set maximum-threshold value (in KBs) for marking traffic-class queue. |
|
Set minimum-threshold value (in KBs) for marking traffic-class queue. |
|
congestion control threshold mode. Choices:
|
|
configure dcb control on interface. |
|
dcb control mode. Choices:
|
|
Relevant only for wrr mode. |
|
list of interfaces name. |
|
enable congestion control on interface. Choices:
|
|
traffic class, range 0-7. |
Examples
- name: Configure traffic class
onyx_traffic_class:
interfaces:
- Eth1/1
- Eth1/2
tc: 3
congestion_control:
control: ecn
threshold_mode: absolute
min_threshold: 500
max_threshold: 1500
dcb:
mode: strict
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The list of configuration mode commands to send to the device. Returned: always Sample: |