sonic-tunnel YANG¶
概要¶
- module:
sonic-tunnel - namespace:
http://github.com/sonic-net/sonic-tunnel - revision:
2022-08-23 - import:
ietf-inet-types,sonic-peer-switch - top container:
sonic-tunnel
DualToR 構成における MuxTunnel (IPinIP encap/decap) のパラメータを保持する。DSCP / ECN / TTL の handling mode、 encap/decap QoS map などを定義する1。
データフロー (自動生成)¶
flowchart LR
Y["sonic-tunnel"]
C1[("CONFIG_DB<br/>TUNNEL")]
Y --> C1
D1["tunnelmgrd"]
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-tunnel
+--rw sonic-tunnel
+--rw TUNNEL
+--rw TUNNEL_LIST* [mux_tunnel]
+--rw mux_tunnel string
+--rw dscp_mode? string
+--rw src_ip? -> /ps:sonic-peer-switch/PEER_SWITCH/PEER_SWITCH_LIST/address_ipv4
+--rw dst_ip? inet:ipv4-address
+--rw ecn_mode? string
+--rw encap_ecn_mode? string
+--rw ttl_mode? string
+--rw tunnel_type? string
+--rw decap_dscp_to_tc_map? string
+--rw decap_tc_to_pg_map? string
+--rw encap_tc_to_dscp_map? string
+--rw encap_tc_to_queue_map? string
leaf 一覧¶
| leaf | パス | 型 | 必須 | デフォルト | enum / 範囲 / leafref | 説明 |
|---|---|---|---|---|---|---|
mux_tunnel |
sonic-tunnel/TUNNEL/TUNNEL_LIST/mux_tunnel |
string |
yes | Name of MuxTunnel | ||
dscp_mode |
sonic-tunnel/TUNNEL/TUNNEL_LIST/dscp_mode |
string |
uniform, pipe | DSCP handling mode (uniform copies outer, pipe preserves inner) | ||
src_ip |
sonic-tunnel/TUNNEL/TUNNEL_LIST/src_ip |
leafref |
/ps:sonic-peer-switch/PEER_SWITCH/PEER_SWITCH_LIST/address_ipv4 | Tunnel source IPv4 (= peer ToR address) | ||
dst_ip |
sonic-tunnel/TUNNEL/TUNNEL_LIST/dst_ip |
inet:ipv4-address |
Tunnel destination IPv4 (= this switch address) | |||
ecn_mode |
sonic-tunnel/TUNNEL/TUNNEL_LIST/ecn_mode |
string |
standard, copy_from_outer | ECN handling mode on decapsulation | ||
encap_ecn_mode |
sonic-tunnel/TUNNEL/TUNNEL_LIST/encap_ecn_mode |
string |
standard, copy_from_inner | ECN marking mode on encapsulation | ||
ttl_mode |
sonic-tunnel/TUNNEL/TUNNEL_LIST/ttl_mode |
string |
uniform, pipe | TTL handling mode | ||
tunnel_type |
sonic-tunnel/TUNNEL/TUNNEL_LIST/tunnel_type |
string |
IPINIP | Encapsulation type | ||
decap_dscp_to_tc_map |
sonic-tunnel/TUNNEL/TUNNEL_LIST/decap_dscp_to_tc_map |
string |
DSCP-to-TC map applied on decapsulation | |||
decap_tc_to_pg_map |
sonic-tunnel/TUNNEL/TUNNEL_LIST/decap_tc_to_pg_map |
string |
TC-to-PG map applied on decapsulation | |||
encap_tc_to_dscp_map |
sonic-tunnel/TUNNEL/TUNNEL_LIST/encap_tc_to_dscp_map |
string |
TC-to-DSCP map applied on encapsulation | |||
encap_tc_to_queue_map |
sonic-tunnel/TUNNEL/TUNNEL_LIST/encap_tc_to_queue_map |
string |
TC-to-queue map applied on encapsulation |
leafref / 依存¶
sonic-tunnel/TUNNEL/TUNNEL_LIST/src_ip→/ps:sonic-peer-switch/ps:PEER_SWITCH/ps:PEER_SWITCH_LIST/ps:address_ipv4
augment / deviation¶
- なし
関連 CONFIG_DB / CLI¶
- CONFIG_DB:
TUNNEL - CLI: なし(DualToR 構築時に config_db.json で直接設定)
関連 YANG モジュール¶
意味的に関連する SONiC YANG モジュール (slug prefix / curated group / frontmatter related.yang から自動抽出):
関連リファレンス¶
引用元¶
-
sonic-net/sonic-buildimagesrc/sonic-yang-models/yang-models/sonic-tunnel.yang@9ea932ec2e18f35e58268ec2e4456b1d4afd65cd↩