Former Irish soldier Cathal Crotty has been sentenced to two years in prison for a violent assault on Natasha O’Brien.