Terrorism should not affect our commitment to peace: COAS