actually Iran played a major role in preventing a crucial UN vote against India on Kashmir in the 90s. Vajpayee led the Indian effort inspite of being in the opposition and along with Congress' Salman Khurshid successfully lobbied Iran to abstain, when Pak was expecting a sure-shot vote from them.
There are no permanent friends or enemies ... only permanent interests ... we should be open to allying with everyone instead of no-one aka NAM.