enhance firewalld modules and states with ipset, zone_absent, service_absent#67790
Open
remijouannet wants to merge 4 commits into
Open
enhance firewalld modules and states with ipset, zone_absent, service_absent#67790remijouannet wants to merge 4 commits into
remijouannet wants to merge 4 commits into
Conversation
Contributor
Author
|
states that i've used to test my changes |
twangboy
requested changes
May 14, 2025
twangboy
left a comment
Contributor
There was a problem hiding this comment.
This will also need a changelog and some tests for the module and the state.
|
|
||
| .. code-block:: bash | ||
|
|
||
| salt '*' firewalld.get_ipsets |
|
|
||
| def get_target(zone): | ||
| """ | ||
| Get zone's target |
Contributor
There was a problem hiding this comment.
Please document the arguments as well.
|
|
||
| def set_target(zone, target, permanent=True): | ||
| """ | ||
| Set zone's target |
Contributor
There was a problem hiding this comment.
These arguments also need to be documented
|
|
||
| def get_ipsets(permanent=True): | ||
| """ | ||
| Print predefined ipsets |
Contributor
There was a problem hiding this comment.
permanent needs a docs entry
|
|
||
| def info_ipset(ipset): | ||
| """ | ||
| Print ipset info |
Contributor
There was a problem hiding this comment.
document the argument please
|
|
||
| def new_ipset(ipset, ipset_type, family=None, options=None, restart=False): | ||
| """ | ||
| Add a new ipset |
|
|
||
| def delete_ipset(ipset, permanent=True, restart=True): | ||
| """ | ||
| Delete an existing ipset |
Contributor
There was a problem hiding this comment.
add some docs for these arguments
|
|
||
| def add_ipset_entry(ipset, entry): | ||
| """ | ||
| Add an new entry to the specified ipset. |
|
|
||
| def remove_ipset_entry(ipset, entry): | ||
| """ | ||
| Remove an entry from the specified ipset. |
Contributor
Author
|
hello @dwoz, do you need some help for my MR ? i saw you've pushed some change |
…ent, and target Add changelog/67790.added.md and unit tests for: - firewalld.zone_absent state (exists, absent, test mode) - firewalld.service_absent state (exists, absent) - firewalld.ipset_absent state (exists, absent) - firewalld.ipset_present state (create+entries, idempotent) - firewalld.zone_present with target option (change, idempotent) - firewalld module: get_target, set_target, get_ipsets, new_ipset, delete_ipset, add_ipset_entry, remove_ipset_entry, info_ipset
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
enhance firewalld modules and states with ipset, zone_absent, service_absent
What does this PR do?
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
No