コンテンツにスキップ

sonic-bgp-device-global YANG

概要

  • module: sonic-bgp-device-global
  • namespace: http://github.com/sonic-net/sonic-bgp-device-global
  • revision: 2024-01-28 (Weighted ECMP using BGP link bandwidth), 2022-06-26 (initial)
  • import: なし
  • top container: sonic-bgp-device-global

デバイスレベル BGP のグローバル設定。TSA (Traffic Shift Away)、 WCMP (Weighted ECMP)、 IDF isolation 状態、および BGP confederation 設定を保持する1

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

flowchart LR
  Y["sonic-bgp-device-global"]
  C1[("CONFIG_DB<br/>BGP_DEVICE_GLOBAL")]
  Y --> C1
  D1["BgpGlobalStateOrch"]
  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

関連 CLI

ツリー

module: sonic-bgp-device-global
  +--rw sonic-bgp-device-global
     +--rw BGP_DEVICE_GLOBAL
        +--rw STATE
        |  +--rw tsa_enabled?           boolean
        |  +--rw wcmp_enabled?          boolean
        |  +--rw idf_isolation_state?   enumeration
        +--rw CONFED
           +--rw asn?     uint32
           +--rw peers?   string

leaf 一覧

leaf パス 必須 デフォルト enum / 範囲 / leafref 説明
tsa_enabled sonic-bgp-device-global/BGP_DEVICE_GLOBAL/STATE/tsa_enabled boolean false When true, traffic is shifted away (TSA); BGP routes are not advertised to neighbors
wcmp_enabled sonic-bgp-device-global/BGP_DEVICE_GLOBAL/STATE/wcmp_enabled boolean false Enable Weighted ECMP using BGP link bandwidth
idf_isolation_state sonic-bgp-device-global/BGP_DEVICE_GLOBAL/STATE/idf_isolation_state enumeration isolated_no_export, isolated_withdraw_all, unisolated IDF (Internet-Facing Datacenter Fabric) isolation state
asn sonic-bgp-device-global/BGP_DEVICE_GLOBAL/CONFED/asn uint32 range 1..4294967295 Autonomous System Number for BGP confederation
peers sonic-bgp-device-global/BGP_DEVICE_GLOBAL/CONFED/peers string List of sub-ASNs in the confederation separated by semi-colon

leafref / 依存

  • なし

augment / deviation

  • なし

関連 CONFIG_DB / CLI

  • CONFIG_DB: BGP_DEVICE_GLOBAL
  • CLI: config bgp (tsa/wcmp/idf), show bgp

関連 YANG モジュール

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

関連リファレンス

運用ヒント

典型的なデプロイ位置

  • BGP のデバイス全体パラメータ。BGP_DEVICE_GLOBAL|STATE を介して FRRbgp グローバル設定 (TCP-AO 等) を制御する。

よくある落とし穴

  • tcp_ao_enabled を true にする場合は対向ルータ側との鍵設定整合を要する。leafref で keychain 名を参照する派生実装あり。

関連する config / show コマンド

sonic-db-cli CONFIG_DB hgetall 'BGP_DEVICE_GLOBAL|STATE'
vtysh -c 'show bgp summary'

引用元


  1. sonic-net/sonic-buildimage src/sonic-yang-models/yang-models/sonic-bgp-device-global.yang @ 9ea932ec2e18f35e58268ec2e4456b1d4afd65cd