dellemc.enterprise_sonic.sonic_qos_pfc 模块 – 在 SONiC 上管理 QoS PFC 配置
注意
此模块是 dellemc.enterprise_sonic 集合 (版本 2.5.1) 的一部分。
如果您正在使用 ansible
软件包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install dellemc.enterprise_sonic
。
要在 playbook 中使用它,请指定:dellemc.enterprise_sonic.sonic_qos_pfc
。
dellemc.enterprise_sonic 2.5.0 中的新增功能
概要
此模块提供运行 SONiC 的设备的 QoS PFC 配置管理
参数
参数 |
注释 |
---|---|
QoS PFC 配置 |
|
启用或禁用使用 flex-counters 进行 PFC 看门狗 选项
|
|
PFC 看门狗轮询间隔 范围 100-3000 |
|
模块完成后的配置状态。 选项
|
备注
注意
针对戴尔科技公司提供的企业 SONiC 发行版进行了测试。
支持
check_mode
。
示例
# 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
返回值
常见的返回值在此处有记录 这里,以下是此模块特有的字段
键 |
描述 |
---|---|
模块调用后的结果配置。 返回:发生更改时 示例: |
|
生成的配置模块调用。 返回:使用 示例: |
|
模块调用之前的配置。 返回:始终返回 示例: |
|
推送到远程设备的命令集。 返回:始终返回 示例: |