sonic-loopback-interface YANG¶
概要¶
- module:
sonic-loopback-interface - namespace:
http://github.com/sonic-net/sonic-loopback-interface - revision:
2021-04-05 - import:
sonic-types,sonic-vrf - top container:
sonic-loopback-interface
Loopback interface configuration for virtual interfaces used as router IDs and service IPs1
データフロー (自動生成)¶
flowchart LR
Y["sonic-loopback-interface"]
C1[("CONFIG_DB<br/>LOOPBACK_INTERFACE")]
Y --> C1
D1["intfmgrd"]
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¶
ツリー¶
module: sonic-loopback-interface
+--rw sonic-loopback-interface
+--rw LOOPBACK_INTERFACE
+--rw LOOPBACK_INTERFACE_LIST* [name]
| +--rw name stypes:interface_name
| +--rw vrf_name? -> /vrf:sonic-vrf/VRF/VRF_LIST/name
| +--rw nat_zone? uint8
| +--rw admin_status? stypes:admin_status
+--rw LOOPBACK_INTERFACE_IPPREFIX_LIST* [name ip-prefix]
+--rw name -> ../../LOOPBACK_INTERFACE_LIST/name
+--rw ip-prefix union
+--rw scope? enumeration
+--rw family? stypes:ip-family
leaf 一覧¶
| leaf | パス | 型 | 必須 | デフォルト | enum / 範囲 / leafref | 説明 |
|---|---|---|---|---|---|---|
name |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_LIST/name |
stypes:interface_name |
yes | Loopback interface name (e.g. Loopback0) | ||
vrf_name |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_LIST/vrf_name |
leafref |
/vrf:sonic-vrf/vrf:VRF/vrf:VRF_LIST/vrf:name | VRF instance to which this loopback interface is bound | ||
nat_zone |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_LIST/nat_zone |
uint8 |
0 | range 0..3 | NAT Zone for the loopback interface | |
admin_status |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_LIST/admin_status |
stypes:admin_status |
up | Administrative state of the loopback interface | ||
name |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_IPPREFIX_LIST/name |
leafref |
yes | ../../LOOPBACK_INTERFACE_LIST/name | Loopback interface name | |
ip-prefix |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_IPPREFIX_LIST/ip-prefix |
union |
yes | union(stypes:sonic-ip4-prefix, stypes:sonic-ip6-prefix) | IPv4 or IPv6 address with prefix length assigned to the loopback interface | |
scope |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_IPPREFIX_LIST/scope |
enumeration |
global, local | Address scope indicating global or link-local reachability | ||
family |
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_IPPREFIX_LIST/family |
stypes:ip-family |
IP address family, must match the format of ip-prefix |
leafref / 依存¶
sonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_LIST/vrf_name→/vrf:sonic-vrf/vrf:VRF/vrf:VRF_LIST/vrf:namesonic-loopback-interface/LOOPBACK_INTERFACE/LOOPBACK_INTERFACE_IPPREFIX_LIST/name→../../LOOPBACK_INTERFACE_LIST/name
augment / deviation¶
- なし
関連 CONFIG_DB / CLI¶
- CONFIG_DB:
LOOPBACK_INTERFACE - CLI:
config loopback
関連 YANG モジュール¶
意味的に関連する SONiC YANG モジュール (slug prefix / curated group / frontmatter related.yang から自動抽出):
関連リファレンス¶
- CONFIG_DB:
LOOPBACK_INTERFACE - CLI:
config loopback
引用元¶
-
sonic-net/sonic-buildimagesrc/sonic-yang-models/yang-models/sonic-loopback-interface.yang@9ea932ec2e18f35e58268ec2e4456b1d4afd65cd↩