Implement MLAG Infrahub Transforms #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Description
Create Infrahub Transforms for MLAG configuration, handling peer-link, domain-id, and dual-active detection.
Context
MLAG is critical for leaf-pair redundancy in the fabric. Since MLAG isn't fully supported in OpenConfig, we rely on Arista-native YANG paths. Infrahub schema will store MLAG intent (replacing NetBox custom fields).
Tasks
mlag_domain_intent.gql- Domain config, peer addressesmlag_interfaces_intent.gql- Peer-link and MLAG membersmlag_config_yang.j2- MLAG domain configurationmlag_interfaces_yang.j2- Port-channel MLAG IDsMLAG Configuration Scope
Infrahub Schema (proposed)
Example Implementation
GraphQL Query (
mlag_domain_intent.gql)Jinja2 Transform (
mlag_config_yang.j2).infrahub.ymlAdditionYANG Path Notes
MLAG uses Arista-native YANG, not OpenConfig:
/arista-mlag-augments:mlag/config- Main MLAG config/arista-mlag-augments:mlag/config/domain-id/arista-mlag-augments:mlag/config/peer-link/arista-mlag-augments:mlag/config/local-interface/arista-mlag-augments:mlag/config/peer-address⚠️ Note: Full MLAG state may require eAPI fallback
Output Files
Acceptance Criteria
Migration Notes (from NetBox)
InfraMlagDomainschema objectMlagMapperclassmlag_config_yang_transformRelated