dellemc.enterprise_sonic.sonic_qos_pfc module – Manage QoS PFC configuration on SONiC
Note
This module is part of the dellemc.enterprise_sonic collection (version 3.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 dellemc.enterprise_sonic
.
To use it in a playbook, specify: dellemc.enterprise_sonic.sonic_qos_pfc
.
New in dellemc.enterprise_sonic 2.5.0
Synopsis
This module provides configuration management of QoS PFC for devices running SONiC
Parameters
Parameter |
Comments |
---|---|
QoS PFC configuration |
|
Enable or disable use of flex-counters for PFC watchdog Choices:
|
|
Polling interval for PFC watchdog Range 100-3000 |
|
The state of the configuration after module completion. Choices:
|
Notes
Note
Tested against Enterprise SONiC Distribution by Dell Technologies.
Supports
check_mode
.
Examples
# Using Merged
#
# Before state:
# -------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : Not Available
# Flex Counters: : enabled
- name: Merge QoS PFC configurations
dellemc.enterprise_sonic.sonic_qos_pfc:
config:
counter_poll: True
poll_interval: 150
state: merged
# After state:
# ------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 150
# Flex Counters: : enabled
#
#
# Using Replaced
#
# Before state:
# -------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 150
# Flex Counters: : enabled
- name: Replace QoS PFC configurations
dellemc.enterprise_sonic.sonic_qos_pfc:
config:
poll_interval: 365
state: replaced
# After state:
# ------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 365
# Flex Counters: : enabled
#
#
# Using Overridden
# Before state:
# -------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 365
# Flex Counters: : enabled
- name: Override QoS PFC configurations
dellemc.enterprise_sonic.sonic_qos_pfc:
config:
counter_poll: False
poll_interval: 400
state: overridden
# After state:
# ------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 400
# Flex Counters: : disabled
#
#
# Using deleted
#
# Before state:
# -------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : 400
# Flex Counters: : disabled
- name: Delete QoS PFC configurations
dellemc.enterprise_sonic.sonic_qos_pfc:
config:
counter_poll: False
poll_interval: 400
state: deleted
# After state:
# ------------
#
# sonic# show priority-flow-control watchdog
#
# Watchdog Summary
# ----------------
# Polling Interval: : Not Available
# Flex Counters: : enabled
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The resulting configuration module invocation. Returned: when changed Sample: |
|
The generated configuration module invocation. Returned: when Sample: |
|
The configuration prior to the module invocation. Returned: always Sample: |
|
The set of commands pushed to the remote device. Returned: always Sample: |