mirror of
https://github.com/sophos/sophos-firewall-sdk.git
synced 2026-04-27 00:25:49 +03:00
[PR #64] [MERGED] feat: add service_type argument to service create/update #63
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sophos-firewall-sdk#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sophos/sophos-firewall-sdk/pull/64
Author: @mamullen13316
Created: 5/13/2024
Status: ✅ Merged
Merged: 5/13/2024
Merged by: @mamullen13316
Base:
main← Head:service_type📝 Commits (1)
abc32f3feat: add service_type argument to service create/update📊 Changes
5 files changed (+110 additions, -22 deletions)
View changed files
📝
pyproject.toml(+1 -1)📝
sophosfirewall_python/firewallapi.py(+66 -16)📝
sophosfirewall_python/templates/createservice.j2(+21 -2)📝
sophosfirewall_python/templates/updateservice.j2(+20 -1)📝
sophosfirewall_python/tests/functional.py(+2 -2)📄 Description
Adds a service_type argument to
create_service()andupdate_service()so that additional service types can be supported.When creating/updating IP services, it is only necessary to specify the protocol as it is shown in the UI. The protocol number is shown in the UI, however it is not used in the API. Similarly, for ICMP the types and codes should be provided using their names as shown in the UI rather than the numbers.
Examples:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.