コンテンツにスキップ

リファレンス

docs/reference/ は SONiC NOS (community master) を運用 / 検証する際に 辞書として直接引く 情報を集める章である。Topics 章 (docs/topics/) が「読み物」として導線を提供するのに対し、本章は コマンド名 / テーブル名 / モジュール名 / 症状 から逆引きする使い方を想定している。

各 reference ページは原則 verification: code-verified で、.cache/sonic-sources/ に shallow clone した master の固定 commit を一次情報として持つ。HLD 由来の推測は本文に明示する。

サブセクションの入口

カテゴリ 入口 役割
CLI cli/index.md config-* / show-* / clear / debug-* / sonic-installer / sonic-cfggen 等の sonic-utilities ベースのコマンドツリー
CONFIG_DB config-db/index.md Redis DB 4 (CONFIG_DB) のテーブル定義。orchagent / *mgrd 各 daemon が subscribe するスキーマ
YANG yang/index.md sonic-yang-models の native SONiC YANG モジュール。CONFIG_DB の正本
Runbooks runbooks/index.md 症状逆引きの運用ハンドブック (BGP down, PFC bandwidth, warm-reboot 失敗 等)
Verification verification/index.md 裏取り運用方針と discrepancy-index (HLD と実装の乖離一覧)

将来追加予定 (未着手)

カテゴリ 状態
glossary/ (用語集) 未着手。現状は本文中で都度説明
sai-attributes/ (SAI 属性表) 未着手。今後 meta/index/sai.json から生成予定
config-db-orch-map/ (テーブル ↔ Orch マッピング) 未着手。現状は CONFIG_DB ページ本文に分散

これらの placeholder は backlog (meta/backlog/reference/) で追跡する。

カバー率 (機械集計, 2026-05-11)

docs/reference/<sub>/*.md を直接数えた件数。verification 内訳は frontmatter の verification: キーから抽出した。

カテゴリ 総ページ code-verified hld-only discrepancy-found meta
CLI 72 72 0 0 1 (index)
CONFIG_DB 121 121 0 0 1 (index)
YANG 84 84 0 0 1 (index)
Runbooks 45 45 0 0 1 (index)
Verification 1 0 0 0 2 (index + discrepancy-index)
合計 323 322 0 0 6

discrepancy-found 自体は reference 内ではなく docs/topics/ 配下に分布する。全 46 ページ。discrepancy-index から area 別 / monitor 別に逆引きできる。

元リポジトリのカバー率参考値

meta/index/*.json で棚卸ししたカウントに対する本プロジェクトの reference ページ数 (網羅率はおおよその目安)。

カテゴリ 元リポの総数 本プロジェクト 備考
sonic-utilities click グループ ~85 72 主要グループは網羅、低使用頻度の dropcounters / vrouter 等が残
sonic-yang-models の CONFIG_DB テーブル ~160 121 派生・廃止テーブルを除いた主要分は網羅
sonic-* native YANG モジュール ~110 84 smartswitch / DASH 系の一部、ベンダー特化モジュールが残

未カバー分は meta/backlog/reference/ で追跡しており、Reference 拡張バッチで段階的に消化する。

よく引かれる項目 (早見リンク集)

主要機能ごとの CLI / CONFIG_DB / YANG / Runbook を 1 行に並べる。HLD への入口は Topics 章を参照する。

BGP / Routing

VLAN / L2 / LAG / MC-LAG

VXLAN / EVPN / VNET

VRF / ECMP / RIB-FIB

ACL / CoPP / Mirror

QoS / Buffer / PFC

Dual-ToR / Mux

Platform / Port / Optics

Reboot / Warm-restart / Lifecycle

SAI / SWSS / ASIC_DB

Management / gNMI / SNMP / Telemetry

NAT / DHCP / Time / DNS

Security / AAA

SmartSwitch / DASH

reference vs topics の役割分担

docs/reference/ docs/topics/
読み方 辞書 (名前から逆引き) 読み物 (機能から導線)
粒度 1 コマンド / 1 テーブル / 1 モジュール = 1 ページ 1 機能 = setup / operations / deep-dive の章
frontmatter verification: code-verified 中心 code-verified / discrepancy-found / hld-only 混在
主な参照元 Topics 章末「関連 reference」と Runbook 内コマンド/テーブル名 Runbook の「関連ページ」、HLD 由来の設計議論

詳細な相互ナビゲーションは Topics: リファレンス横断索引 を参照。本ページ「よく引かれる項目」が 早見表 (canonical) 、Topics 22 章の cli-index / config-db-index / yang-index は **章構造ごとの詳細表 (canonical) ** として役割を分担する。

関連 Topics