Added virtual switch logic-3