Working with virtual switches