Merge pull request #14 from pauldalewilliams/add-ipset-as-source-in-zones
Add support for using ipsets as sources in a zone
This commit is contained in:
commit
28a15e1707
@ -23,6 +23,16 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- if 'ipsets' in zone %}
|
||||||
|
{%- for v in zone.ipsets %}
|
||||||
|
{%- if 'comment' in v %}
|
||||||
|
<!-- {{ v.comment }} -->
|
||||||
|
<source ipset="{{ v.ipset }}" />
|
||||||
|
{%- else %}
|
||||||
|
<source ipset="{{ v }}" />
|
||||||
|
{%- endif %}
|
||||||
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
{%- if 'services' in zone %}
|
{%- if 'services' in zone %}
|
||||||
{%- for v in zone.services %}
|
{%- for v in zone.services %}
|
||||||
<service name="{{ v }}" />
|
<service name="{{ v }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user