fix: migrate display_labels to display_label Jinja2 format in base schema

Replaces deprecated display_labels list format and bare display_label
strings with the new Jinja2 template format as required by Infrahub.

Refs #41
This commit is contained in:
2026-02-07 09:16:40 +00:00
parent bb76b93499
commit 97080473f7

View File

@@ -9,7 +9,7 @@ generics:
label: Interface label: Interface
include_in_menu: false include_in_menu: false
hierarchical: false hierarchical: false
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -37,9 +37,9 @@ generics:
kind: Generic kind: Generic
nodes: nodes:
# ========================================================================== # ===================================================================
# Location # Location
# ========================================================================== # ===================================================================
- name: Site - name: Site
namespace: Location namespace: Location
description: Physical site or data center description: Physical site or data center
@@ -49,7 +49,7 @@ nodes:
- name__value - name__value
order_by: order_by:
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -62,9 +62,9 @@ nodes:
optional: true optional: true
description: Facility identifier or code description: Facility identifier or code
# ========================================================================== # ===================================================================
# Platform # Platform
# ========================================================================== # ===================================================================
- name: Platform - name: Platform
namespace: Infra namespace: Infra
description: Device platform/OS (e.g., Arista EOS, Cisco NX-OS) description: Device platform/OS (e.g., Arista EOS, Cisco NX-OS)
@@ -74,7 +74,7 @@ nodes:
- name__value - name__value
order_by: order_by:
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -92,9 +92,9 @@ nodes:
optional: true optional: true
description: Netmiko device type description: Netmiko device type
# ========================================================================== # ===================================================================
# Device # Device
# ========================================================================== # ===================================================================
- name: Device - name: Device
namespace: Infra namespace: Infra
description: Network device (spine, leaf, etc.) description: Network device (spine, leaf, etc.)
@@ -104,7 +104,7 @@ nodes:
- name__value - name__value
order_by: order_by:
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: name - name: name
kind: Text kind: Text
@@ -169,9 +169,9 @@ nodes:
cardinality: one cardinality: one
optional: true optional: true
# ========================================================================== # ===================================================================
# Interface Types (inherit from InfraInterface generic) # Interface Types (inherit from InfraInterface generic)
# ========================================================================== # ===================================================================
- name: InterfaceEthernet - name: InterfaceEthernet
namespace: Infra namespace: Infra
description: Physical Ethernet interface description: Physical Ethernet interface
@@ -184,7 +184,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: speed - name: speed
kind: Dropdown kind: Dropdown
@@ -237,7 +237,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
- name: InterfaceVlan - name: InterfaceVlan
namespace: Infra namespace: Infra
@@ -251,7 +251,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
relationships: relationships:
- name: vlan - name: vlan
peer: InfraVLAN peer: InfraVLAN
@@ -270,7 +270,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: lacp_mode - name: lacp_mode
kind: Dropdown kind: Dropdown
@@ -304,7 +304,7 @@ nodes:
human_friendly_id: human_friendly_id:
- device__name__value - device__name__value
- name__value - name__value
display_label: "name__value" display_label: "{{ name__value }}"
attributes: attributes:
- name: udp_port - name: udp_port
kind: Number kind: Number
@@ -315,9 +315,9 @@ nodes:
cardinality: one cardinality: one
description: VTEP source interface (typically Loopback1) description: VTEP source interface (typically Loopback1)
# ========================================================================== # ===================================================================
# IP Address # IP Address
# ========================================================================== # ===================================================================
- name: IPAddress - name: IPAddress
namespace: Infra namespace: Infra
description: IP Address assignment description: IP Address assignment
@@ -327,7 +327,7 @@ nodes:
- address__value - address__value
order_by: order_by:
- address__value - address__value
display_label: "address__value" display_label: "{{ address__value }}"
attributes: attributes:
- name: address - name: address
kind: IPNetwork kind: IPNetwork