{% for p in ports|ports %}
interface {{ p }}
switchport port-security
switchport port-security maximum {{ max_mac }}
switchport port-security violation {{ violation }}
{% if sticky %}
switchport port-security mac-address sticky
{% endif %}
exit
{% endfor %}
