-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: add update ip hostgroup method (#45)
- Loading branch information
1 parent
5e6d7cb
commit 39c0fe0
Showing
3 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "sophosfirewall-python" | |
packages = [ | ||
{ include = "sophosfirewall_python" }, | ||
] | ||
version = "0.1.26" | ||
version = "0.1.27" | ||
description = "Python SDK for Sophos Firewall" | ||
authors = ["Matt Mullen <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Request> | ||
<Login> | ||
<Username>{{username}}</Username> | ||
<Password >{{password}}</Password> | ||
</Login> | ||
<Set operation="update"> | ||
<IPHostGroup transactionid=""> | ||
<Name>{{ name }}</Name> | ||
<Description>{{ description }}</Description> | ||
<HostList> | ||
{% for host in host_list %} | ||
<Host>{{ host }}</Host> | ||
{% endfor %} | ||
</HostList> | ||
<IPFamily>IPv4</IPFamily> | ||
</IPHostGroup> | ||
</Set> | ||
</Request> |