[PR #1508] [CLOSED] Adds same-network check for port allocations. #1424

Closed
opened 2026-02-05 18:13:31 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1508
Author: @mkaulfers
Created: 7/10/2025
Status: Closed

Base: mainHead: subnet-port-validation


📝 Commits (1)

  • cc356ee Adds 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1508 **Author:** [@mkaulfers](https://github.com/mkaulfers) **Created:** 7/10/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `subnet-port-validation` --- ### 📝 Commits (1) - [`cc356ee`](https://github.com/pelican-dev/panel/commit/cc356ee4c6044fd77a6a9e8e17fdcefa8591bd1e) Adds same-network check for port allocations. ### 📊 Changes **9 files changed** (+494 additions, -400 deletions) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 18:13:31 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#1424