MEXICO CITY, Nov 17 (Reuters) - Fitch Ratings on Thursday affirmed Colombian majority state-owned energy company Ecopetrol's foreign and local currency issuer default ratings (IDRs) at 'BB+', adding that the outlook for the national long-term rating is stable.

Ecopetrol's ratings reflect the close linkage with Colombia, which owns 88.5% of the firm and its ratings "also reflect the company's strategic importance for the country, as well as its ability to maintain a solid financial profile," Fitch said. (Reporting by Anthony Esposito; Editing by Brendan O'Boyle)