-
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.
Updates to management of services (#61)
- Loading branch information
1 parent
1a413e3
commit c1f379e
Showing
6 changed files
with
197 additions
and
16 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.35" | ||
version = "0.1.36" | ||
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
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,21 @@ | ||
<Request> | ||
<Login> | ||
<Username>{{username}}</Username> | ||
<Password>{{password}}</Password> | ||
</Login> | ||
<Set operation="update"> | ||
<Services transactionid=""> | ||
<Name>{{ name }}</Name> | ||
<Type>TCPorUDP</Type> | ||
<ServiceDetails> | ||
{% for service in service_list %} | ||
<ServiceDetail> | ||
<SourcePort>{{ service.get(src_port, '1:65535') }}</SourcePort> | ||
<DestinationPort>{{ service.dst_port }}</DestinationPort> | ||
<Protocol>{{ service.protocol }}</Protocol> | ||
</ServiceDetail> | ||
{% endfor %} | ||
</ServiceDetails> | ||
</Services> | ||
</Set> | ||
</Request> |
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,3 @@ | ||
[pytest] | ||
# prevents variable values from printing which may contain sensitive info | ||
addopts = --tb=short |