mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-16 04:03:50 +03:00
[PR #1508] [CLOSED] Adds same-network check for port allocations. #1424
Reference in New Issue
Block a user
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/pelican-dev/panel/pull/1508
Author: @mkaulfers
Created: 7/10/2025
Status: ❌ Closed
Base:
main← Head:subnet-port-validation📝 Commits (1)
cc356eeAdds same-network check for port allocations.📊 Changes
9 files changed (+494 additions, -400 deletions)
View changed files
➕
app/Exceptions/Service/Allocation/PortConflictOnSameNetworkException.php(+20 -0)📝
app/Http/Controllers/Api/Application/Nodes/AllocationController.php(+1 -0)📝
app/Models/Allocation.php(+109 -0)➕
app/Rules/UniquePortOnSameNetwork.php(+84 -0)📝
app/Services/Allocations/AssignmentService.php(+17 -0)📝
app/Services/Allocations/FindAssignableAllocationService.php(+2 -0)📝
lang/en/exceptions.php(+1 -0)➕
tests/Unit/Models/AllocationTest.php(+41 -0)📝
yarn.lock(+219 -400)📄 Description
Adds a new validation check for same network check on nodes and port allocations. If two separate nodes share the same subnet, it will throw an invalid port exception whenever a duplicate is detected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.