feat: Add Infrahub Jinja2 transform for VRF/L3VNI configuration (#21) #25
Reference in New Issue
Block a user
Delete Branch "feat/infrahub-transforms-vrf-l3vni"
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
Implements Infrahub Jinja2 Transform for VRF/L3VNI configuration, generating structured JSON payloads from Infrahub intent data. Closes #21.
What's included
transforms/queries/vrf_intent.gql): QueriesInfraVRFDeviceAssignmentby device name, fetching VRF details, L3VNI, route targets, and device-specific route distinguishertransforms/templates/vrf_yang.j2): Renders VRF config payloads with defensive null handling (lessons learned from #20).infrahub.ymlupdated with the new query and transform definitionstransforms/tests/vrf_yang/) using correct Infrahub pytest format (jinja2-transform-smoke+jinja2-transform-unit-render)Validation
All transforms render correctly:
leaf310.0.250.13:1, L3VNI 100001leaf710.0.250.17:1, L3VNI 100001leaf1spine1Usage
Related