25 lines
692 B
Django/Jinja
25 lines
692 B
Django/Jinja
<Request>
|
|
<Login>
|
|
<Username>{{ sophos_api_username }}</Username>
|
|
<Password>{{ sophos_api_password }}</Password>
|
|
</Login>
|
|
<Set operation="add">
|
|
<WebException>
|
|
<Name>{{ item.name }}</Name>
|
|
<VirtualHost>{{ item.virtual_host }}</VirtualHost>
|
|
<Path>{{ item.path }}</Path>
|
|
<SkipRules>
|
|
{% for rule in item.skip_rules %}
|
|
<Rule>{{ rule }}</Rule>
|
|
{% endfor %}
|
|
</SkipRules>
|
|
<SourceNetworks>
|
|
{% for network in item.source_networks %}
|
|
<Network>{{ network }}</Network>
|
|
{% endfor %}
|
|
</SourceNetworks>
|
|
<Comment>{{ item.comment | default('') }}</Comment>
|
|
</WebException>
|
|
</Set>
|
|
</Request>
|