Sync Software switch State with Physical Switch

Complete explanation can be found here: