A method for switching a replacement connection to optical transmission devices