The black-footed ferret , the only ferret native to North America , was part of the Great Plains ecosystem that spread from Canada to Mexico , an expanse that was perforated with sprawling prairie dog towns .