Using virtual switches