dellemc.enterprise_sonic.sonic_qos_scheduler 模块 – 在 SONiC 上管理 QoS 调度器配置
注意
此模块是 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_scheduler
。
dellemc.enterprise_sonic 2.5.0 中的新增功能
概要
此模块为运行 SONiC 的设备提供 QoS 调度器的配置管理
参数
参数 |
注释 |
---|---|
QoS 调度器配置 |
|
调度器策略的名称 |
|
调度器策略的调度器配置 |
|
以字节为单位的承诺突发大小 范围 0-125000000 |
|
以 bps 为单位的承诺信息速率 范围 0-400000000000 |
|
调度器使用的计量方法 选项
|
|
以字节为单位的超额突发大小 范围 0-125000000 |
|
以 bps 为单位的峰值信息速率 范围 0-400000000000,必须大于或等于 cir |
|
指定调度器的类型 严格优先级调度不能配置权重 选项
|
|
调度器的序列号 接口队列的范围为 0-7 CPU 队列的范围为 0-47 端口队列指定 255 |
|
调度器的权重 范围 1-100 |
|
模块完成后配置的状态 选项
|
备注
注意
已针对 Dell Technologies 的 Enterprise SONiC 发行版进行了测试。
支持
check_mode
。
示例
# Using Merged
#
# Before state:
# -------------
#
# sonic# show qos scheduler-policy
# (No qos scheduler-policy configuration present)
- name: Merge QoS scheduler configurations
dellemc.enterprise_sonic.sonic_qos_scheduler:
config:
- name: policy1
schedulers:
- sequence: 0
scheduler_type: dwrr
weight: 10
meter_type: packets
cir: 32000
pir: 40000
cbs: 30000
pbs: 35000
state: merged
# After state:
# ------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# type: dwrr
# weight: 10
# meter-type: packets
# cir: 32000 Pps
# cbs: 30000 Packets
# pir: 40000 Pps
# pbs: 35000 Packets
#
#
# Using Replaced
#
# Before state:
# -------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# type: dwrr
# weight: 10
# meter-type: packets
# cir: 32000 Pps
# cbs: 30000 Packets
# pir: 40000 Pps
# pbs: 35000 Packets
- name: Replace QoS scheduler configurations
dellemc.enterprise_sonic.sonic_qos_scheduler:
config:
- name: policy1
schedulers:
- sequence: 0
weight: 12
state: replaced
# After state:
# ------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# weight: 12
#
#
# Using Overridden
# Before state:
# -------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# type: dwrr
# weight: 10
# meter-type: packets
# cir: 32000 Pps
# cbs: 30000 Packets
# pir: 40000 Pps
# pbs: 35000 Packets
# Queue: 1
# type: dwrr
# weight: 14
# meter-type: packets
- name: Override QoS scheduler configurations
dellemc.enterprise_sonic.sonic_qos_scheduler:
config:
- name: policy2
schedulers:
- sequence: 0
scheduler_type: wrr
weight: 5
meter_type: bytes
cir: 50000
pir: 60000
cbs: 800000
pbs: 900000
state: overridden
# After state:
# ------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy2
# Queue: 0
# type: wrr
# weight: 5
# meter-type: bytes
# cir: 50 Kbps
# cbs: 800000 Bytes
# pir: 60 Kbps
# pbs: 900000 Bytes
#
#
# Using deleted
#
# Before state:
# -------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# type: dwrr
# weight: 10
# meter-type: packets
# cir: 32000 Pps
# cbs: 30000 Packets
# pir: 40000 Pps
# pbs: 35000 Packets
# Queue: 1
# type: dwrr
# weight: 14
# meter-type: packets
# Scheduler Policy: policy2
# Queue: 0
# type: wrr
# weight: 5
# meter-type: bytes
# cir: 50 Kbps
# cbs: 800000 Bytes
# pir: 60 Kbps
# pbs: 900000 Bytes
- name: Delete QoS scheduler configurations
dellemc.enterprise_sonic.sonic_qos_scheduler:
config:
- name: policy1
schedulers:
- sequence: 0
cir: 32000
pir: 40000
cbs: 30000
pbs: 35000
- sequence: 1
- name: policy2
state: deleted
# After state:
# -------------
#
# sonic# show qos scheduler-policy
# Scheduler Policy: policy1
# Queue: 0
# type: dwrr
# weight: 10
# meter-type: packets
返回值
常见返回值记录在此处,以下是此模块独有的字段
键 |
描述 |
---|---|
生成的配置模块调用。 已返回: 当更改时 示例: |
|
生成的配置模块调用。 已返回: 当 示例: |
|
模块调用之前的配置。 已返回: 始终 示例: |
|
推送到远程设备的一组命令。 已返回: 始终 示例: |