switch1a:
/interface bridge
add admin-mac=DE:AD:BE:EF:DE:A0 auto-mac=no name=bridge port-cost-mode=short priority=0x5000 vlan-filtering=yes
/interface ethernet
set [ find default-name=sfp-sfpplus4 ] comment="Partner Switch sfp-sfpplus4:" l2mtu=10218
/interface bonding
add lacp-rate=1sec mode=802.3ad name=bond-peer slaves=sfp-sfpplus4 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=39 mode=802.3ad name=bonde39 slaves=ether39 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=40 mode=802.3ad name=bonde40 slaves=ether40 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=41 mode=802.3ad name=bonde41 slaves=ether41 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=42 mode=802.3ad name=bonde42 slaves=ether42 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=43 mode=802.3ad name=bonde43 slaves=ether43 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=44 mode=802.3ad name=bonde44 slaves=ether44 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=45 mode=802.3ad name=bonde45 slaves=ether45 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=46 mode=802.3ad name=bonde46 slaves=ether46 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=47 mode=802.3ad name=bonde47 slaves=ether47 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=48 mode=802.3ad name=bonde48 slaves=ether48 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=101 mode=802.3ad name=bondsfp1 slaves=sfp-sfpplus1 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=102 mode=802.3ad name=bondsfp2 slaves=sfp-sfpplus2 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=103 mode=802.3ad name=bondsfp3 slaves=sfp-sfpplus3 transmit-hash-policy=layer-3-and-4
/interface bridge mlag
set bridge=bridge peer-port=bond-peer
/interface bridge port
add bridge=bridge comment="MLAG Peer:" interface=bond-peer pvid=99 trusted=yes
add bridge=bridge interface=bonde38 restricted-role=yes
add bridge=bridge interface=bonde39 restricted-role=yes
add bridge=bridge interface=bonde40 restricted-role=yes
add bridge=bridge interface=bonde41 restricted-role=yes
add bridge=bridge interface=bonde42 restricted-role=yes
add bridge=bridge interface=bonde43 restricted-role=yes
add bridge=bridge interface=bonde44 restricted-role=yes
add bridge=bridge interface=bonde45 restricted-role=yes
add bridge=bridge interface=bonde46 restricted-role=yes
add bridge=bridge interface=bonde47 restricted-role=yes
add bridge=bridge interface=bonde48 restricted-role=yes
add bridge=bridge edge=no-discover interface=bondsfp1 restricted-role=yes trusted=yes
add bridge=bridge edge=no-discover interface=bondsfp2 restricted-role=yes trusted=yes
add bridge=bridge interface=bondsfp3 restricted-role=yes
/interface bridge vlan
add bridge=bridge tagged=bond-peer vlan-ids=1
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=10
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=11
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=21
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=22
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=23
add bridge=bridge tagged="bridge,bond-peer,bondsfp1,bondsfp2,bondsfp3,bonde38,bonde39,bonde40,bonde41,bonde42,bonde43,bonde44,bonde45,\
bonde46,bonde47,bonde48" vlan-ids=50
add bridge=bridge tagged="bridge,bond-peer,bondsfp1,bondsfp2,bondsfp3,bonde38,bonde39,bonde40,bonde41,bonde42,bonde43,bonde44,bonde45,\
bonde46,bonde47,bonde48" vlan-ids=52
/interface bridge
add admin-mac=DE:AD:BE:EF:DE:A1 auto-mac=no name=bridge port-cost-mode=short priority=0x5000 vlan-filtering=yes
/interface ethernet
set [ find default-name=sfp-sfpplus4 ] comment="Partner Switch sfp-sfpplus4:" l2mtu=10218
/interface bonding
add lacp-rate=1sec mode=802.3ad name=bond-peer slaves=sfp-sfpplus4 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=39 mode=802.3ad name=bonde39 slaves=ether39 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=40 mode=802.3ad name=bonde40 slaves=ether40 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=41 mode=802.3ad name=bonde41 slaves=ether41 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=42 mode=802.3ad name=bonde42 slaves=ether42 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=43 mode=802.3ad name=bonde43 slaves=ether43 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=44 mode=802.3ad name=bonde44 slaves=ether44 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=45 mode=802.3ad name=bonde45 slaves=ether45 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=46 mode=802.3ad name=bonde46 slaves=ether46 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=47 mode=802.3ad name=bonde47 slaves=ether47 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=48 mode=802.3ad name=bonde48 slaves=ether48 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=101 mode=802.3ad name=bondsfp1 slaves=sfp-sfpplus1 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=102 mode=802.3ad name=bondsfp2 slaves=sfp-sfpplus2 transmit-hash-policy=layer-3-and-4
add lacp-rate=1sec mlag-id=103 mode=802.3ad name=bondsfp3 slaves=sfp-sfpplus3 transmit-hash-policy=layer-3-and-4
/interface bridge mlag
set bridge=bridge peer-port=bond-peer
/interface bridge port
add bridge=bridge comment="MLAG Peer:" interface=bond-peer pvid=99 trusted=yes
add bridge=bridge interface=bonde39 restricted-role=yes
add bridge=bridge interface=bonde40 restricted-role=yes
add bridge=bridge interface=bonde41 restricted-role=yes
add bridge=bridge interface=bonde42 restricted-role=yes
add bridge=bridge interface=bonde43 restricted-role=yes
add bridge=bridge interface=bonde44 restricted-role=yes
add bridge=bridge interface=bonde45 restricted-role=yes
add bridge=bridge interface=bonde46 restricted-role=yes
add bridge=bridge interface=bonde47 restricted-role=yes
add bridge=bridge interface=bonde48 restricted-role=yes
add bridge=bridge edge=no-discover interface=bondsfp1 restricted-role=yes trusted=yes
add bridge=bridge edge=no-discover interface=bondsfp2 restricted-role=yes trusted=yes
add bridge=bridge interface=bondsfp3 restricted-role=yes
/interface bridge vlan
add bridge=bridge tagged=bond-peer vlan-ids=1
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=10
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=11
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=21
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=22
add bridge=bridge tagged=bridge,bond-peer,bondsfp1,bondsfp2 vlan-ids=23
add bridge=bridge tagged="bridge,bond-peer,bondsfp1,bondsfp2,bondsfp3,bonde38,bonde39,bonde40,bonde41,bonde42,bonde43,bonde44,bonde45,\
bonde46,bonde47,bonde48" vlan-ids=50
add bridge=bridge tagged="bridge,bond-peer,bondsfp1,bondsfp2,bondsfp3,bonde38,bonde39,bonde40,bonde41,bonde42,bonde43,bonde44,bonde45,\
bonde46,bonde47,bonde48" vlan-ids=52