fix: migrate display_labels to display_label Jinja2 format in BGP schema

Refs #41
This commit is contained in:
2026-02-07 09:17:07 +00:00
parent 97080473f7
commit cda3804c2c

View File

@@ -3,9 +3,9 @@
--- ---
version: "1.0" version: "1.0"
nodes: nodes:
# ========================================================================== # ===================================================================
# Autonomous System # Autonomous System
# ========================================================================== # ===================================================================
- name: AutonomousSystem - name: AutonomousSystem
namespace: Infra namespace: Infra
description: BGP Autonomous System description: BGP Autonomous System
@@ -15,7 +15,7 @@ nodes:
- asn__value - asn__value
order_by: order_by:
- asn__value - asn__value
display_label: "asn__value" display_label: "{{ asn__value }}"
attributes: attributes:
- name: asn - name: asn
kind: Number kind: Number
@@ -33,9 +33,9 @@ nodes:
- name: public - name: public
label: Public label: Public
# ========================================================================== # ===================================================================
# BGP Router Configuration (per device) # BGP Router Configuration (per device)
# ========================================================================== # ===================================================================
- name: BGPRouterConfig - name: BGPRouterConfig
namespace: Infra namespace: Infra
description: BGP router configuration on a device description: BGP router configuration on a device
@@ -43,7 +43,7 @@ nodes:
icon: mdi--router-wireless icon: mdi--router-wireless
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
display_label: "router_id__value" display_label: "{{ router_id__value }}"
attributes: attributes:
- name: router_id - name: router_id
kind: IPHost kind: IPHost
@@ -81,9 +81,9 @@ nodes:
cardinality: many cardinality: many
kind: Component kind: Component
# ========================================================================== # ===================================================================
# BGP Peer Group # BGP Peer Group
# ========================================================================== # ===================================================================
- name: BGPPeerGroup - name: BGPPeerGroup
namespace: Infra namespace: Infra
description: BGP peer group template description: BGP peer group template
@@ -91,7 +91,7 @@ nodes:
icon: mdi--account-group icon: mdi--account-group
human_friendly_id: human_friendly_id:
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -153,9 +153,9 @@ nodes:
cardinality: one cardinality: one
optional: true optional: true
# ========================================================================== # ===================================================================
# BGP Session (Neighbor) # BGP Session (Neighbor)
# ========================================================================== # ===================================================================
- name: BGPSession - name: BGPSession
namespace: Infra namespace: Infra
description: BGP neighbor session description: BGP neighbor session
@@ -163,7 +163,7 @@ nodes:
icon: mdi--connection icon: mdi--connection
human_friendly_id: human_friendly_id:
- peer_address__value - peer_address__value
display_label: "peer_address__value" display_label: "{{ peer_address__value }}"
attributes: attributes:
- name: peer_address - name: peer_address
kind: IPHost kind: IPHost
@@ -195,15 +195,15 @@ nodes:
optional: true optional: true
description: Remote peer device (for documentation) description: Remote peer device (for documentation)
# ========================================================================== # ===================================================================
# BGP Address Family Configuration # BGP Address Family Configuration
# ========================================================================== # ===================================================================
- name: BGPAddressFamily - name: BGPAddressFamily
namespace: Infra namespace: Infra
description: BGP address family configuration description: BGP address family configuration
label: BGP Address Family label: BGP Address Family
icon: mdi--format-list-bulleted icon: mdi--format-list-bulleted
display_label: "afi__value" display_label: "{{ afi__value }}"
attributes: attributes:
- name: afi - name: afi
kind: Dropdown kind: Dropdown