This article provides guidance on how to add irb interfaces to the routing instance mac-vrf.
Adding the irb to the routing instance throws a commit error:
{master:0}[edit] root@QFX5120# set routing-instances data instance-type mac-vrf {master:0}[edit] root@QFX5120# set routing-instances data interface irb.1021 {master:0}[edit] root@QFX5120# commit check [edit routing-instances data interface] 'irb.1021' IRB interface irb.1021 should be specified using l3-interface or routing-interface config [edit routing-instances data] 'interface irb.1021' EVPN: Interface..... irb.1021 could not be created from the configuration error: configuration check-out failed
To successfully add the irb into the routing instance mac-vrf you have to add it under the vlan hierarchy inside the routing instance mac-vrf
{master:0}[edit] root@QFX5120# set routing-instances data vlans v1021 l3-interface irb.1021 {master:0}[edit] root@QFX5120# commit check configuration check succeeds