Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port allocation: allow to keep existing range #728

Merged
merged 5 commits into from
Oct 11, 2024
Merged

Port allocation: allow to keep existing range #728

merged 5 commits into from
Oct 11, 2024

Conversation

gsanchietti
Copy link
Member

@gsanchietti gsanchietti commented Oct 9, 2024

Improve existing allocate port method to ease the update of complex modules.

Issue referencec:

Tested with NethSecurity Controller update: NethServer/ns8-nethsecurity-controller#44

@gsanchietti gsanchietti force-pushed the add_port branch 3 times, most recently from 9645b35 to a8e873d Compare October 10, 2024 06:48
github-actions bot pushed a commit that referenced this pull request Oct 10, 2024
github-actions bot pushed a commit that referenced this pull request Oct 10, 2024
@gsanchietti gsanchietti changed the title ports_manger: new methods Port allocation: allow to keep existing range Oct 10, 2024
@gsanchietti gsanchietti marked this pull request as ready for review October 10, 2024 07:28
@gsanchietti gsanchietti marked this pull request as draft October 10, 2024 07:31
@gsanchietti gsanchietti marked this pull request as ready for review October 10, 2024 08:09
If keep_existing option is set,
current allocated range is not deleted:
another range is added to the existing one

Without reallocating the whole range, this option can simplify
the configuration of modules that are using many ports.
The allocate_ports and deallocate_ports can't be compared because they
now are different types: range vs list of ranges.
github-actions bot pushed a commit that referenced this pull request Oct 11, 2024
@gsanchietti gsanchietti merged commit 375aa37 into main Oct 11, 2024
3 checks passed
@gsanchietti gsanchietti deleted the add_port branch October 11, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants