Saltstack Official FirewallD Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 satır
887B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ipset{%- if 'type' in ipset %} type="{{ ipset.type }}" {%- endif %}>
  3. {%- if 'short' in ipset %}
  4. <short>{{ ipset.short }}</short>
  5. {%- endif %}
  6. {%- if 'description' in ipset %}
  7. <description>{{ ipset.description }}</description>
  8. {%- endif %}
  9. {%- if 'options' in ipset %}
  10. {%- if 'maxelem' in ipset.options %}
  11. {%- for v in ipset.options.maxelem %}
  12. <option name="maxelem" value="{{ v }}"/>
  13. {%- endfor %}
  14. {%- endif %}
  15. {%- if 'timeout' in ipset.options %}
  16. {%- for v in ipset.options.timeout %}
  17. <option name="timeout" value="{{ v }}"/>
  18. {%- endfor %}
  19. {%- endif %}
  20. {%- if 'hashsize' in ipset.options %}
  21. {%- for v in ipset.options.hashsize %}
  22. <option name="hashsize" value="{{ v }}"/>
  23. {%- endfor %}
  24. {%- endif %}
  25. {%- endif %}
  26. {%- if 'entries' in ipset %}
  27. {%- for v in ipset.entries %}
  28. <entry>{{ v }}</entry>
  29. {%- endfor %}
  30. {%- endif %}
  31. </ipset>