Hello there,
The sequence of operation is as follows:
1/ confiure VRF(s)
2/ configure bridge-domain(s)/BD
3/ configure physical fe-|ge-|xe-|ae- interface with "encapsulation <extended-vlan-bridge|ethernet-bridge|flexible-ethernet-services>"
4/ if using "flexible-ethernet-services", configure logical fe-|ge-|xe-|ae- interface unit(s) with "encapsulation vlan-bridge" , vlan-id and "family bridge"
5/ if using "encapsulation ethernet-bridge" configure logical fe-|ge-|xe-|ae- interface unit 0 with "family bridge"
6/ else configure logical fe-|ge-|xe-|ae- interface unit(s) with vlan-id and "family bridge"
7/ add logical fe-|ge-|xe-|ae- interface unit(s) already configured with "family bridge" in step 4-6 into BD(s)
8/ add IRB unit(s) into BD(s) using "set bridge-domain <BDname> routing-interface irb.<unit>" knob
9/ add "family inet address <IPv4 address/masklen>" to IRB interface unit(s)
10/ add IRB unit(s) into chosen VRF(s)
HTH
Thanks
Alex