コンテンツにスキップ

sonic-buffer-queue YANG

概要

  • module: sonic-buffer-queue
  • namespace: http://github.com/sonic-net/sonic-buffer-queue
  • revision: 2021-07-01
  • import: sonic-port, sonic-buffer-profile, sonic-device_metadata, sonic-types
  • top container: sonic-buffer-queue

Egress queue buffer configuration per port.1

データフロー (自動生成)

flowchart LR
  Y["sonic-buffer-queue"]
  C1[("CONFIG_DB<br/>BUFFER_QUEUE")]
  Y --> C1
  D1["buffermgrd"]
  C1 --> D1

凡例

YANG モジュールから CONFIG_DB テーブル経由で subscribe する daemon/orch までを docs/reference/config-db-orch-map.md から機械生成したミニ図。詳細・例外は本ページ本文を参照。

関連ページ

本 YANG モジュールに対応する CONFIG_DB / CLI / HLD / Topics への相互リンク。inject_yang_xref.py により自動生成されます。

対応 CONFIG_DB

関連 HLD

ツリー

module: sonic-buffer-queue
  +--rw sonic-buffer-queue
     +--rw BUFFER_QUEUE
        +--rw BUFFER_QUEUE_LIST* [port qindex]
        |  +--rw port       -> /prt:sonic-port/PORT/PORT_LIST/name
        |  +--rw qindex     string
        |  +--rw profile?   -> /bpf:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST/name
        +--rw VOQ_BUFFER_QUEUE_LIST* [hostname asic_name port qindex]
           +--rw hostname     stypes:hostname
           +--rw asic_name    stypes:asic_name
           +--rw port         string
           +--rw qindex       string
           +--rw profile?     -> /bpf:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST/name

leaf 一覧

leaf パス 必須 デフォルト enum / 範囲 / leafref 説明
port sonic-buffer-queue/BUFFER_QUEUE/BUFFER_QUEUE_LIST/port leafref yes /prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name Port on which the egress queue buffer is configured.
qindex sonic-buffer-queue/BUFFER_QUEUE/BUFFER_QUEUE_LIST/qindex string yes pattern (1[0-5]|[0-9])((-)(1[0-5]|[0-9]))? Egress queue index or range (e.g. 0-3) on the port.
profile sonic-buffer-queue/BUFFER_QUEUE/BUFFER_QUEUE_LIST/profile leafref 0 /bpf:sonic-buffer-profile/bpf:BUFFER_PROFILE/bpf:BUFFER_PROFILE_LIST/bpf:name Buffer profile applied to this egress queue.
hostname sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/hostname stypes:hostname yes VOQ chassis hostname owning this port.
asic_name sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/asic_name stypes:asic_name yes ASIC instance name within the VOQ chassis.
port sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/port string yes length 1..128 Port name on the VOQ chassis linecard.
qindex sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/qindex string yes pattern (1[0-5]|[0-9])((-)(1[0-5]|[0-9]))? Egress queue index or range (e.g. 0-3) on the port.
profile sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/profile leafref 0 /bpf:sonic-buffer-profile/bpf:BUFFER_PROFILE/bpf:BUFFER_PROFILE_LIST/bpf:name Buffer profile applied to this egress queue.

leafref / 依存

  • sonic-buffer-queue/BUFFER_QUEUE/BUFFER_QUEUE_LIST/port/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name
  • sonic-buffer-queue/BUFFER_QUEUE/BUFFER_QUEUE_LIST/profile/bpf:sonic-buffer-profile/bpf:BUFFER_PROFILE/bpf:BUFFER_PROFILE_LIST/bpf:name
  • sonic-buffer-queue/BUFFER_QUEUE/VOQ_BUFFER_QUEUE_LIST/profile/bpf:sonic-buffer-profile/bpf:BUFFER_PROFILE/bpf:BUFFER_PROFILE_LIST/bpf:name

augment / deviation

  • なし

関連 CONFIG_DB / CLI

関連 YANG モジュール

意味的に関連する SONiC YANG モジュール (slug prefix / curated group / frontmatter related.yang から自動抽出):

関連リファレンス

運用ヒント

典型的なデプロイ位置

  • QoS queue のバッファ割り当て。BUFFER_QUEUE|<port>|<queue-range> を bufferorch が処理する。

よくある落とし穴

  • queue index は 0-7 のような range 文字列。単一値と range を混在させると key 重複検出が漏れる例あり。

関連する config / show コマンド

sonic-db-cli CONFIG_DB keys 'BUFFER_QUEUE|*'
show queue persistent-watermark unicast

引用元

関連 Topics


  1. sonic-net/sonic-buildimage src/sonic-yang-models/yang-models/sonic-buffer-queue.yang @ 9ea932ec2e18f35e58268ec2e4456b1d4afd65cd