I had a "good dog" keep trying for my leg as I passed,back and forth, thru the gate to the back yard.

I finally clubbed him with a set of refrigeration gauges. He did his barking from the other side of the house for the remainder of the servcie call.