Dogs or cats vaccinated in compliance with the provisions of this article may run at large in any area or locality: Provided, That the commissioner of agriculture may, pursuant to article nine of this chapter, exercise his discretion to establish a quarantined area or locality and to require all dogs and cats within the limits of any quarantined area or locality to be confined as provided in article nine: Provided, however, That a county commission or a municipality may adopt and enforce ordinances not inconsistent with the provisions of article twenty of this chapter of the code, as it considers necessary or convenient for the control and management of all dogs in the county, or a portion thereof, vaccinated or not, except as further provided herein: Provided further, That any county commission or municipality may not adopt any ordinance which purports to keep any vaccinated dog from running at large while engaged in any lawful hunting activity; from running at large while engaged in any lawful training activity; or from running at large while engaged in any lawful herding or other farm related activity: And provided further, That the provisions of this section shall not exempt any dog from any quarantine established by or any confinement order required by the commissioner relating to the establishment of a quarantine.