Few fixes for select switch and adapter.
Fix for add switch to VM.

Find a swith with name and the swith type and add the same to the VM.