All the ports are business ports, the 'war' is in form of building blocks of business. e.g. deep sea port, industrial parks for manufactures, logistic redistribution centers, friendly policy. Once the neighbors of India establish their 'comparative advantage' against India business, the growing space of India's industries will be significantly suppressed. e.g. Hambantota port will become the center for transshipment and logistic hub of the IOR, Indian ports will lose its position in the competition and become branches of the whole logistic tree, the capital will flow along the route of cargo, this basically predicate that Colombo and Hambantota will become new centers of offshore financial services like Singapore, Indian traders will deposit their money into banks in Sri Lanka for 'tax avoidance' and 'money laundry', don't tell me Indian traders are patriots, they can do whatever they can to protect and maximize their interest.
From military perspective, long coast is in fact a kind of weakness since the attacking surface is too large to guard every possible hole in the whole frontier. India has to spend more money in defense, and become more suspicious toward foreigners' move in IOR, this will further create an undesirable environment for India's economic development.
Abandoning victim mentality shaped from colonial era and confrontation mentality shaped from cold war era, India will have less psychological burden and make rational move, finally get what India desire to get.