It could be a bit of both. Good for Israel! If the hot heads in Iran want war—give it to them with all the horrors of war.
Israel will probably move these subs through the canal, wait a bit, and bring back all of them except one. :’) That’ll give the Iranians something to rant and rave about. The key to a successful strike on Iran will be, to pick the moment the regime has one of its huge “spontaneous” rallies, and wipe everyone ranting and raving right off the map. Ideally, it would follow a covert takeover of Iranian TV, so that everyone in Iran who stays home sees what happened immediately, and knows that, at last, “it’s on”.