The Derick Brassard trade required some re-tooling, but it's a done deal.

Here's the full trade, as confirmed by the Pittsburgh Penguins on Friday night:

Pittsburgh receives Brassard, forward Vincent Dunn, winger Tobias Lindberg, and a third-round pick in 2018.

The Ottawa Senators get defenseman Ian Cole, goaltending prospect Filip Gustavsson, a first-rounder in 2018, and a third-round selection in 2019.

Finally, the Vegas Golden Knights acquire forward Ryan Reaves and a fourth-rounder in June's draft.

The Golden Knights are also retaining 40 percent of Brassard's salary this season as part of the trade.

He's earning $3.5 million in total salary this season and next, per CapFriendly, and his cap hit is $5 million.

The NHL reportedly asked the three teams involved to rework the deal earlier Friday.

FYI source confirms that the reason the original Pitt-Vegas-Ottawa three-way trade got rejected by the league earlier today was for "improper use of salary retention mechanism" — Pierre LeBrun (@PierreVLeBrun) February 24, 2018

The Senators and Penguins reportedly agreed on the first version of the swap Friday afternoon before getting the Golden Knights involved.