<?xml version="1.0" encoding="utf-8"?>
<ipset type="{{ type|default('hash:ip') }}">
{% if short is defined %}
  <short>{{ short }}</short>
{% endif %}
{% if description is defined %}
  <description>{{ description }}</description>
{% endif %}
{% for name,value in (option|default({})).items() %}
  <option name="{{ name }}" value="{{ value }}"/>
{% endfor %}
{% for entry in targets|default([]) %}
  <entry>{{ entry }}</entry>
{% endfor %}
</ipset>
