Added virtual switch logic-2