sonic-lldp YANG¶
概要¶
- module:
sonic-lldp - namespace:
http://github.com/sonic-net/sonic-lldp - revision:
2021-07-08 - import:
sonic-port - top container:
sonic-lldp
データフロー (自動生成)¶
flowchart LR
Y["sonic-lldp"]
C1[("CONFIG_DB<br/>LLDP")]
Y --> C1
D1["lldpmgrd"]
C1 --> D1
C2[("CONFIG_DB<br/>LLDP_PORT")]
Y --> C2
C2 --> 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-lldp
+--rw sonic-lldp
+--rw LLDP
| +--rw GLOBAL
| +--rw hello_time? uint8
| +--rw multiplier? uint8
| +--rw system_name? string
| +--rw system_description? string
| +--rw supp_mgmt_address_tlv? boolean
| +--rw supp_system_capabilities_tlv? boolean
| +--rw enabled? boolean
| +--rw mode? enumeration
+--rw LLDP_PORT
+--rw LLDP_PORT_LIST* [ifname]
+--rw ifname -> /prt:sonic-port/PORT/PORT_LIST/name
+--rw enabled? boolean
+--rw mode? enumeration
container / list 一覧¶
| 種別 | パス | key | 説明 |
|---|---|---|---|
container |
sonic-lldp |
||
container |
sonic-lldp/LLDP |
||
container |
sonic-lldp/LLDP/GLOBAL |
||
container |
sonic-lldp/LLDP_PORT |
||
list |
sonic-lldp/LLDP_PORT/LLDP_PORT_LIST |
ifname |
leaf 一覧¶
| leaf | パス | 型 | 必須 | デフォルト | enum / 範囲 / leafref | 説明 |
|---|---|---|---|---|---|---|
hello_time |
sonic-lldp/LLDP/GLOBAL/hello_time |
uint8 |
30 | range 5..254 |
It is the time interval at which periodic hellos are exchanged. Default is 30 seconds | |
multiplier |
sonic-lldp/LLDP/GLOBAL/multiplier |
uint8 |
4 | range 1..10 |
This multiplier value is used to determine the timeout interval (i.e. hello-time x multiplier value) after which LLDP neighbor entry is deleted. | |
system_name |
sonic-lldp/LLDP/GLOBAL/system_name |
string |
System administratively assigned name | |||
system_description |
sonic-lldp/LLDP/GLOBAL/system_description |
string |
System description | |||
supp_mgmt_address_tlv |
sonic-lldp/LLDP/GLOBAL/supp_mgmt_address_tlv |
boolean |
false | Suppress sending of Management Address TLV in LLDP frames | ||
supp_system_capabilities_tlv |
sonic-lldp/LLDP/GLOBAL/supp_system_capabilities_tlv |
boolean |
false | Suppress sending of System Capabilities TLV in LLDP frames | ||
ifname |
sonic-lldp/LLDP_PORT/LLDP_PORT_LIST/ifname |
leafref |
yes | /prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name | Reference of port on which LLDP to be configured. |
leafref / 依存¶
sonic-lldp/LLDP_PORT/LLDP_PORT_LIST/ifname→/prt:sonic-port/prt:PORT/prt:PORT_LIST/prt:name
augment / deviation¶
- なし
関連 CONFIG_DB / CLI¶
関連 YANG モジュール¶
意味的に関連する SONiC YANG モジュール (slug prefix / curated group / frontmatter related.yang から自動抽出):
関連リファレンス¶
運用ヒント¶
典型的なデプロイ位置¶
- LLDP デーモン設定。
LLDP/LLDP_PORT|<port>を lldpmgrd がlldpcli configureに反映。
よくある落とし穴¶
tx_hold/tx_intervalの組み合わせで TTL が決まる。整数 typedef だが範囲制約が緩く、過小値で隣接が flapping する。
関連する config / show コマンド¶
引用元¶
-
sonic-net/sonic-buildimagesrc/sonic-yang-models/yang-models/sonic-lldp.yang@9ea932ec2e18f35e58268ec2e4456b1d4afd65cd↩