I have two Shetland Sheepdogs that are absolutely amazing with my chickens and I never had to specially train either one besides the occasional fussing at them if they did something I didn't like.
My older Sheltie male, Fiasco, was raised with my first 6 chickens. He was immediately obsessed...