IF Turkey attack, NATO could kick Turkey out of the alliance, which would not be good because that is the same bargaining chip Turks are holding over Sweden and Finland Membership.
Article 5 kicks in(If Greece want to invoke it) everyone goes to war with Turkey.
As for Russia-Ukraine, not much, Turkey supplies Ukraine with TB-2 Drone, and that's the only contribution Turkey did, it worth notice that Turkey is not a party that sanction Russia. I would assume either Turkey continue to deliver those drone (I heard there were around 20 still overdue) or have to refund the Ukrainian their money. Most likely NATO would replace that with MQ-9 or equivalent