(2)A partner may make an agreement with his partners that on ceasing to be a partner he will not carry on any business similar to that of the firm within a specified period or within a specified local limits; and, notwithstanding anything contained in section 27 of the Indian Contract Act, 1872 (9 of 1872), such agreement shall be valid if the restrictions imposed are reasonable.