What happens if the deal fails and Iran continues it's program? Surely Putin will not allow Netanyahu to attack Iran.
The deal (and there will be a final deal tomorrow) will not fail for one simple reason -the sanctions imposed on Iran over the years are hurting Iran worse than any of us think, and they are desperate to end them by any means necessary, so long as they can save face and come back home with some semblance of self-respect. We have the upper hand -they do not.
Iran knows that if it breaks this deal, that justifies Israel and/or the US going in. It may be a mess for the international community as a whole, but there's no way Iran comes out of that well.