The federal government is imposing a two-year moratorium on immigration applications from parents and grandparents, starting immediately.