community.general.onyx_qos (0.1.1) — module

Configures QoS

Authors: Anas Badaha (@anasb)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure QoS
  onyx_QoS:
    interfaces:
      - Mpo7
      - Mpo7
    trust: L3
    rewrite_pcp: disabled
    rewrite_dscp: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure QoS
  onyx_QoS:
    interfaces:
      - Eth1/1
      - Eth1/2
    trust: both
    rewrite_pcp: disabled
    rewrite_dscp: enabled

Inputs

    
trust:
    choices:
    - L2
    - L3
    - both
    default: L2
    description:
    - trust type.

interfaces:
    description:
    - list of interfaces name.
    required: true

rewrite_pcp:
    choices:
    - enabled
    - disabled
    default: disabled
    description:
    - rewrite with type pcp.

rewrite_dscp:
    choices:
    - enabled
    - disabled
    default: disabled
    description:
    - rewrite with type dscp.

Outputs

commands:
  description: The list of configuration mode commands to send to the device.
  returned: always
  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
  type: list