About 25-30 years ago we had an FDDI network, and the hosts had optical bypass switches on them.

The FDDI network comprised two fiber rings, one going clockwise and the other anticlockwise. If a host dropped off the network, the optical bypass switch would loop the two rings to each other, creating one big ring. Two non-adjacent hosts dropping off the network would break the ring.

The optical bypass was surprisingly simple. It was a couple of pieces of fiber segment glued to a swiveling magnet; an adjacent electromagnet pull the magnet/fiber assembly, connecting the network rings normally if energized. If power were removed from the electromagnet, a spring would pull it in the other direction, pointing the fibers into loop position, connecting the network rings in looped configuration.

In both cases, the air was the medium between the fibers entering the switch and the straight-through/loopback fiber segments.

Apologies in advance for my poor explanation.

Check out relatively recent Google TPU paper where they used an optical switch to connect neighboring TPUs

https://arxiv.org/pdf/2304.01433