onyx_qos – Configures QoS

From Get docs
Ansible/docs/2.9/modules/onyx qos module


onyx_qos – Configures QoS

New in version 2.9.


Synopsis

  • This module provides declarative management of Onyx QoS configuration on Mellanox ONYX network devices.

Parameters

Parameter Choices/Defaults Comments

interfaces

- / required

list of interfaces name.

rewrite_dscp

-

  • enabled
  • disabled

rewrite with type dscp.

rewrite_pcp

-

  • enabled
  • disabled

rewrite with type pcp.

trust

-

  • L2

  • L3
  • both

trust type.



Notes

Note

  • Tested on ONYX 3.6.8130


Examples

- name: configure QoS
  onyx_QoS:
    interfaces:
      - Mpo7
      - Mpo7
    trust: L3
    rewrite_pcp: disabled
    rewrite_dscp: enabled

- name: configure QoS
  onyx_QoS:
    interfaces:
      - Eth1/1
      - Eth1/2
    trust: both
    rewrite_pcp: disabled
    rewrite_dscp: enabled

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description

commands

list

always

The list of configuration mode commands to send to the device.


Sample:

['interface ethernet 1/16 qos trust L3', 'interface mlag-port-channel 7 qos trust L3', 'interface port-channel 1 qos trust L3', 'interface mlag-port-channel 7 qos trust L2', 'interface mlag-port-channel 7 qos rewrite dscp', 'interface ethernet 1/16 qos rewrite pcp', 'interface ethernet 1/1 no qos rewrite pcp']




Status

Authors

  • Anas Badaha (@anasb)

Hint

If you notice any issues in this documentation, you can edit this document to improve it.


© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/onyx_qos_module.html