I don't actually have a RB3011, but a RB2011 which is close.
You haven't mentioned how your connecting to the RB3011 for management (which VLAN? or console?) so this will be a little incomplete and you may lose access if not careful.
Any management IP should be set on a vlan interface added under the sw-bridge.
Hopefully this will give you a good start, but I'm sure I have a few typos.
##Add ports into their respective switch groups using master-port, only Ether1 and Ether6 will remain as none
/interface ethernet
set [ find default-name=ether2 ] master-port=ether1 ##duplicate def-name up to ether5
set [ find default-name=ether7 ] master-port=ether6 ##duplicate def-name up to ether10
/interface bridge
add name=sw-bridge protocol-mode=none
/interface bridge port
add bridge=sw-bridge interface=Ether1
add bridge=sw-bridge interface=Ether6
/interface ethernet switch port
set [ find default-name=ether1 ] default-vlan-id=9 vlan-header=always-strip vlan-mode=secure
set [ find default-name=ether2 ] default-vlan-id=9 vlan-header=always-strip vlan-mode=secure
set [ find default-name=ether3 ] default-vlan-id=9 vlan-header=always-strip vlan-mode=secure
set [ find default-name=ether4 ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
set [ find default-name=ether5 ] default-vlan-id=900 vlan-header=always-strip vlan-mode=secure
set [ find default-name=switch1-cpu ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
set [ find default-name=ether6 ] default-vlan-id=900 vlan-header=always-strip vlan-mode=secure
set [ find default-name=ether7 ] default-vlan-id=17 vlan-header=always-strip vlan-mode=secure
set [ find default-name=ether8 ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
set [ find default-name=ether9 ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
set [ find default-name=ether10 ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
set [ find default-name=switch2-cpu ] default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
/interface ethernet switch vlan
add independent-learning=no ports=ether1,ether2,ether3,ether4,switch1-cpu switch=switch1 vlan-id=9
add independent-learning=no ports=ether8,ether9,ether10,switch2-cpu switch=switch2 vlan-id=9
add independent-learning=no ports=ether5 switch=switch1 vlan-id=900
add independent-learning=no ports=ether6,ether8,ether9,ether10 switch=switch2 vlan-id=900
add independent-learning=no ports=ether7,ether8,ether9,ether10 switch=switch2 vlan-id=17
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=12
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=13
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=14
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=15
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=16
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=18
add independent-learning=no ports=ether8,ether9,ether10 switch=switch2 vlan-id=19