Johnston and his ex-fiancée have agreed to co-parent

Credit: Getty

Looks like a win for Levi Johnston.

The ex-fiancé of Bristol Palin and father of her oldest child, son Tripp, took to Facebook on Tuesday, outlining, in his own words, the end of his ongoing custody battle with the Alaska native.

“I’m so happy to have my son in my life, and to put all of this back in (sic) forth in the courts behind me,” Johnston, 25, wrote. “It might have taken me 7 years and cost me around $100,000 in lawyer fees, spread out among 3 different lawyers, as well as a lot of patience, but it was all worth it.”

VIDEO: Bristol Palin Shares Adorable Family Photo

In 2009, nearly a year after Tripp was born, Johnston announced that he would sue Palin, 25, for joint custody of their son after alleging that the entire Palin family was making it difficult for him to see his child.

Four years later in 2013, Johnston filed a petition in which he sought at least equal custody of Tripp, now seven.

While it may have taken quite some time, the parents have seemingly come to an agreement, as Johnston added on Facebook that he and Palin will be sharing parenting duties.

“I’m happy now to be successfully co-parenting,” he wrote.

After admitting that he does “owe some back child support,” he clarified that he has already paid a total of $50,000 over Tripp’s lifetime, adding that, “At the end of the day I know I have worked hard to meet my obligations as a father.”

“Despite what some have heard I’ve always been there for him, and I go to almost every school event that I can and spend all of my free time with my kids,” he continued, referencing his 3-year-old daughter Breeze Beretta from a separate relationship.

Although Palin has not directly addressed the custody agreement, she took to Instagram on Monday, sharing a photo of a quote that read, “The best security blanket a child can have is parents who respect each other.”

However, she did not clarify what she was talking about, as she captioned the photo “Just thinking out loud this morning.”