ansible / ansible.builtin / v2.9.27 / module / onyx_traffic_class Configures Traffic Class | "added in version" 2.9 of ansible.builtin" Authors: Anas Badaha (@anasb) preview | supported by communityansible.builtin.onyx_traffic_class (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
This module provides declarative management of Traffic Class configuration on Mellanox ONYX network devices.
- 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
tc: description: - traffic class, range 0-7. required: true dcb: description: - configure dcb control on interface. suboptions: mode: choices: - strict - wrr description: - dcb control mode. required: true weight: description: - Relevant only for wrr mode. state: choices: - enabled - disabled default: enabled description: - enable congestion control on interface. interfaces: description: - list of interfaces name. required: true congestion_control: description: - configure congestion control on interface. suboptions: control: choices: - red - ecn - both description: - congestion control type. required: true max_threshold: description: - Set maximum-threshold value (in KBs) for marking traffic-class queue. required: true min_threshold: description: - Set minimum-threshold value (in KBs) for marking traffic-class queue. required: true threshold_mode: choices: - absolute - relative description: - congestion control threshold mode. required: true
commands: description: The list of configuration mode commands to send to the device. returned: always sample: - interface ethernet 1/15 traffic-class 3 congestion-control ecn minimum-absolute 150 maximum-absolute 1500 - interface ethernet 1/16 traffic-class 3 congestion-control ecn minimum-absolute 150 maximum-absolute 1500 - interface mlag-port-channel 7 traffic-class 3 congestion-control ecn minimum-absolute 150 maximum-absolute 1500 - interface port-channel 1 traffic-class 3 congestion-control ecn minimum-absolute 150 maximum-absolute 1500 - interface ethernet 1/15 traffic-class 3 dcb ets strict - interface ethernet 1/16 traffic-class 3 dcb ets strict - interface mlag-port-channel 7 traffic-class 3 dcb ets strict - interface port-channel 1 traffic-class 3 dcb ets strict type: list