mirror of
https://github.com/sophos/sophos-firewall-sdk.git
synced 2026-04-27 00:25:49 +03:00
[PR #93] [MERGED] FIX: Allow Any as src/dest in firewall rules #90
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#90
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/93
Author: @mamullen13316
Created: 5/6/2025
Status: ✅ Merged
Merged: 5/6/2025
Merged by: @mamullen13316
Base:
main← Head:fw_rule_fix📝 Commits (3)
ccb7d69update template to exclude src/dest keys if Any is specified. Required in 21.x.1bc4a4aupdate version to v0.1.63d00e761update template to exclude src/dest keys if Any is specified📊 Changes
3 files changed (+17 additions, -5 deletions)
View changed files
📝
pyproject.toml(+1 -1)📝
sophosfirewall_python/templates/createfwrule.j2(+8 -2)📝
sophosfirewall_python/templates/updatefwrule.j2(+8 -2)📄 Description
Previously, when using
create_rule()andupdate_rule()methods, it was not possible to specifyAnyfor src/dest zone, network, or service. Instead, you had to omit the parameters altogether, or specify an empty list to indicateAny. To reduce the likelihood of errors, in this version it is now possible to specify['Any']. For example:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.