Claude 1
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="{% if item.name in existing_routes %}update{% else %}add{% endif %}">
|
||||
<StaticRoute>
|
||||
<Name>{{ item.name }}</Name>
|
||||
<Destination>{{ item.destination }}</Destination>
|
||||
<Netmask>{{ item.netmask }}</Netmask>
|
||||
<Gateway>{{ item.gateway }}</Gateway>
|
||||
{% if item.interface is defined %}
|
||||
<Interface>{{ item.interface }}</Interface>
|
||||
{% endif %}
|
||||
<Metric>{{ item.metric | default(10) }}</Metric>
|
||||
<Status>{{ 'Enable' if item.enabled | default(true) else 'Disable' }}</Status>
|
||||
</StaticRoute>
|
||||
</Set>
|
||||
</Request>
|
||||
Reference in New Issue
Block a user