Bridge Setup with Failover with redundancy fiber

help with this !!!
Untitled.png

Use STP and set path costs to make that link a backup one.

Please explain HOW

  A
 / \
B---C

On A:
/interface bridge
add name=bridge protocol-mode=rstp priority=0x4000
/interface bridge port
add bridge=bridge interface=to-B path-cost=10
add bridge=bridge interface=to-C path-cost=10

On B:
/interface bridge
add name=bridge protocol-mode=rstp priority=0x8000
/interface bridge port
add bridge=bridge interface=to-A path-cost=10
add bridge=bridge interface=to-C path-cost=100

On C:
/interface bridge
add name=bridge protocol-mode=rstp priority=0x8000
/interface bridge port
add bridge=bridge interface=to-A path-cost=10
add bridge=bridge interface=to-B path-cost=100

Thanks A lot Its Working Thanks !!!