The New York Islanders and veteran defenseman Lubomir Visnovsky have agreed to terms on a two-year extension, the team announced Friday evening.

The deal is worth $9.5 million, a source confirmed to ESPNNewYork.com.

Visnovsky was believed to be a trade target for teams looking to bolster their blue line, but with the Islanders challenging for a playoff spot general manager Garth Snow decided to lock him up.

The 36-year-old, who has three goals and six assists in 22 games for the Islanders this season, was set to become an unrestricted free agent this July. Before inking an extension with the Isles, Visnovsky was on the last year of a five-year, $28 million deal.

Visnovsky's tenure with the Islanders has been an interesting one. After being acquired by the Islanders in a trade with Anaheim last summer, Visnovsky tried to void the deal. Visnovsky filed a grievance with the NHL Players' Association that his no-trade clause, waived in his trade from Edmonton from Anaheim in 2010, was not honored.