fix: migrate display_labels to display_label Jinja2 format in VRF schema

Also enriched VRFDeviceAssignment display_label to show device + VRF.

Refs #41
This commit is contained in:
2026-02-07 09:18:38 +00:00
parent b9b15f3beb
commit 25550bb3c4

View File

@@ -3,9 +3,9 @@
--- ---
version: "1.0" version: "1.0"
nodes: nodes:
# ========================================================================== # ===================================================================
# VRF (Virtual Routing and Forwarding) # VRF (Virtual Routing and Forwarding)
# ========================================================================== # ===================================================================
- name: VRF - name: VRF
namespace: Infra namespace: Infra
description: Virtual Routing and Forwarding instance description: Virtual Routing and Forwarding instance
@@ -15,8 +15,7 @@ nodes:
- name__value - name__value
order_by: order_by:
- name__value - name__value
display_labels: display_label: "{{ name__value }}"
- name__value
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -57,9 +56,9 @@ nodes:
optional: true optional: true
description: Interfaces assigned to this VRF description: Interfaces assigned to this VRF
# ========================================================================== # ===================================================================
# Route Target # Route Target
# ========================================================================== # ===================================================================
- name: RouteTarget - name: RouteTarget
namespace: Infra namespace: Infra
description: BGP Route Target for VPN import/export description: BGP Route Target for VPN import/export
@@ -69,8 +68,7 @@ nodes:
- target__value - target__value
order_by: order_by:
- target__value - target__value
display_labels: display_label: "{{ target__value }}"
- target__value
attributes: attributes:
- name: target - name: target
kind: Text kind: Text
@@ -80,9 +78,9 @@ nodes:
kind: Text kind: Text
optional: true optional: true
# ========================================================================== # ===================================================================
# VRF Device Assignment # VRF Device Assignment
# ========================================================================== # ===================================================================
- name: VRFDeviceAssignment - name: VRFDeviceAssignment
namespace: Infra namespace: Infra
description: VRF assignment to a specific device description: VRF assignment to a specific device
@@ -91,8 +89,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- vrf__name__value - vrf__name__value
display_labels: display_label: "{{ device__name__value }} - {{ vrf__name__value }}"
- route_distinguisher__value
attributes: attributes:
- name: route_distinguisher - name: route_distinguisher
kind: Text kind: Text