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).
jinja2_transforms:- name:mlag_config_yang_transformdescription:"Generate YANG payload for MLAG domain config"query:mlag_domain_intenttemplate_path:transforms/mlag_config_yang.j2- name:mlag_interfaces_yang_transformdescription:"Generate YANG payload for MLAG interface config"query:mlag_interfaces_intenttemplate_path:transforms/mlag_interfaces_yang.j2queries:- name:mlag_domain_intentfile_path:queries/mlag_domain_intent.gql- name:mlag_interfaces_intentfile_path:queries/mlag_interfaces_intent.gql
YANG Path Notes
MLAG uses Arista-native YANG, not OpenConfig:
/arista-mlag-augments:mlag/config - Main MLAG config
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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