Creating and managing virtual switches