feat: Add Infrahub Jinja2 transforms for MLAG configuration (#22) #26
Reference in New Issue
Block a user
Delete Branch "feat/infrahub-transforms-mlag"
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
Closes #22. Implements Infrahub Jinja2 transforms for MLAG configuration, generating Arista-native YANG-compatible JSON payloads from Infrahub intent data.
infrahub/transforms/queries/mlag_intent.gqlInfraMlagPeerConfigby$device_name, including MLAG domain attributes, peer/iBGP VLANs, local interface SVI, and peer-link LAGinfrahub/transforms/templates/mlag_yang.j2/arista-mlag-augments:mlag/config; returns[]for devices with no MLAG (spines)infrahub/transforms/tests/mlag_yang/test.ymlleaf1andspine1infrahub/transforms/tests/mlag_yang/leaf1/leafs-1-2)infrahub/transforms/tests/mlag_yang/spine1/[]for spine1.infrahub.ymlmlag_intentquery andmlag_yang_transformjinja2 transformOutput shape (leaf1)
Validation
Design notes
is defined and is not noneguards[](empty array) — consistent with the "no data → empty collection" pattern used in vxlan_yang for devices without VTEP🤖 Generated with Claude Code