fix: add human_friendly_id to 4 schemas for idempotent Repository sync #29
Reference in New Issue
Block a user
Delete Branch "fix/human-friendly-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
local_identifierattribute +uniqueness_constraints+human_friendly_idto InfraVlanVniMapping, InfraEVPNInstance, InfraMlagInterface, and InfraUnderlayLink, following the same pattern already used forInfraBGPPeerGroupandInfraBGPSessionlocal_identifierin all corresponding object YAML files with deterministic composite keys so Infrahub can upsert objects during Repository backend sync instead of creating duplicatesSchema changes
infrahub/schemas/vlan_vxlan.ymlInfraVlanVniMappinglocal_identifier__valueinfrahub/schemas/vlan_vxlan.ymlInfraEVPNInstancelocal_identifier__valueinfrahub/schemas/mlag.ymlInfraMlagInterfacelocal_identifier__valueinfrahub/schemas/extensions.ymlInfraUnderlayLinklocal_identifier__valueObject file changes
infrahub/objects/06-vlans-vxlan.ymlInfraVlanVniMapping{device}__vlan{vlan_id}__vni{vni_id}leaf1__vlan40__vni110040infrahub/objects/06-vlans-vxlan.ymlInfraEVPNInstance{device}__vlan{vlan_id}leaf1__vlan40infrahub/objects/12-mlag.ymlInfraMlagInterfacemlag{id}__{device1}-{device2}mlag1__leaf1-leaf2infrahub/objects/14-fabric-links.ymlInfraUnderlayLink{local_dev}-{local_intf}__{remote_dev}-{remote_intf}spine1-eth1__leaf1-eth11Note:
InfraMlagInterfaceobjects (4 entries, one per MLAG pair) andInfraUnderlayLinkobjects (16 entries, all spine↔leaf P2P links) are new additions to their respective files.Test plan
infrahubctl schema load infrahub/schemas/*.ymlsucceeds without errorsinfrahubctl object load infrahub/objects/06-vlans-vxlan.ymlsucceedsinfrahubctl object load infrahub/objects/12-mlag.ymlsucceedsinfrahubctl object load infrahub/objects/14-fabric-links.ymlsucceeds🤖 Generated with Claude Code