I think, its time you need to sit down and analyze this whole episode. You need to understand What Iran lost and what Iran achieved?. Iran only lost the trust and its credibility. The missile spree in the region, showed Iran as irresponsible nation, the one which do not care for international norms, regulations and sovereign borders. Iran also displayed that it want to become regional hegemony and regional bully. Its attempt to show of strength, actually back fired when Pakistan did airstrike as a retaliation.
Now coming to main excuse of terrorism that Iran made. We have seen in Pakistan that airstrikes / missile strikes only aggravates and spreads the terrorist network. If you need to stop terrorism, you need to go for the root cause of the problem. By bombing them, they will only go more violent and vengeful. That group vowed after iranian strike that they will hit iran even more harder the next time and avenge their families. I think same kind of statement the other group in Iran said after Pak's retaliation. So bombing just one hideout NEVER ends terrorism. You need to understand that strike was NEVER meant to end terrorism in Iran. It was meant for a geopolitical statement. It was meant to display Iran's strength to Israel / US and using its neighbors as a tool. The strategy backfired. It was Iran's net loss. Now countries in Iran's neighborhood will not trust Iran, It will take a very very long time to go back to the pre-strike level of coordination / relationship.