{% for p in ports|ports %}
interface {{ p }}
{% if description %}
description {{ description }}
{% endif %}
switchport mode access
switchport access vlan {{ vlan_id }}
{% if portfast %}
spanning-tree portfast
{% endif %}
exit
{% endfor %}
