Flynn's plea and his cooperation were both done to avoid much bigger charges.
He served honorably for 30+ years; only in the last three did he turn into a traitor. He was unregistered agent of a foreign country while serving as National Security Advisor to the President.
Let that sink in, and pretend - just for a second - to care about your country.