Added virtual switch logic-4