update switch state after inserting all machines

Change-Id: I6ec68cb3f7a1d97ded843fc7a022227854a7b9ca