RTSP protocol between swOS and routerOS

Hi,
I would like to ask you a question, for which I currently cannot find the solution or understand if it is feasible or not with these devices…
I have a RouterBoard 4011iGS+ with ROS 7.14.1 and two MikroTik switches CSS326-24G-2S+ with SwitchOS 2.16;
on the RouterBoard, there are 3 bridges 30, 40, 110 to which the respective tagged VLANs are assigned on physical ports eth9 and eth10.
Eth9 of the router is connected to port 24 of switch 1; eth10 is connected to port 24 of switch 2.
I would like to connect ports 23 of the switches together so that in case of failure on the uplinks (router-switch connection) of one of the two switches, traffic temporarily passes through port 23.
I am not familiar with SwitchOS, from the RSTP menu I can only select the port on which to enable it, Bridge Priority (hex) 8000 (I can modify this value), and Port Cost Mode choosing between short/long.
On the router, in the RSTP settings of the bridges, I have set the same hex value and the same type of cost mode as the switch.
Connecting ports 23 creates a loop throughout the network and RSTP does not intervene, forcing me to keep the cable disconnected from port 23.
On various forums, I have read about similar issues with SwitchOS, some have solved it by setting trunk ports in the following way:
VLAN mode: strict, VLAN receive: any, default VLAN ID: 1; this solution does not work in my case.
I am seeking advice regarding the possible correction of the incorrect configuration of the router or the switch.
Thank you all.

Let’s go. In my opinion, for better use of equipment resources, you should change this setting. Doing it as follows:
1 - On the RB4011, create only 1 (one) bridge and separate the VLAN by activating VLAN filtering (if you don’t know this functionality, read it, as when you activate it you may lose communication with the equipment and if you are doing it remotely it could be a problem . Use safe mode). Confirm that the RSTP option is active and that the priority field is set to 0 (in your scenario the RB must be the root bridge)

2 - Still on the RB 4011. In the interface/VLAN tab, point all the VLANS created to the created bridge (point all the vlans to the same bridge)

3 - On the RB 4011. Create the Trunk ports that will communicate with the switches in the Bridge/VLANs tab. Create a rule for each vlan and include, in addition to the interfaces that go to the switches, the bridge itself as tagged ports. Don’t forget to add these ports in Bridge/ports.

4 - In CSS326 there is not much to do. I just suggest uplinking the RB4011 to CSS326 via SFP+ because you have up to 10Gbps of bandwidth. It uses the SFP2 port of the CSS326 to send it to switch 02. The backup ports use port 24 of the CSS326 switch directly on the RB 4011 and port 24 of switch 02 on the RB 4011 (Remembering that all these ports of the RB4011 must be within of the bridge created and configured as trunk, that is, all VLANs pass through them tagged). In the settings of the bridge created on the RB4011, in the General tab below RSTP, select the long field. In CSS326 in the RSTP tab too.

The main reason for leaving just one bridge is the benefit of using Hardware offloading on each port (there is no CPU consumption as the process is at the switchchip level). You confirm that hardware offloading has been enabled if the letter H appears in the port status in Bridge/ports) Only one bridge uses this feature. To be safe, exclude the other bridges.

I hope I helped.