Converting a standard switch to a logical switch