Skip to content

feat(admin-api): add endpoint to list free IPs in IPv4 range#60

Merged
v0l merged 1 commit into
masterfrom
feat/free-ips-endpoint
Feb 22, 2026
Merged

feat(admin-api): add endpoint to list free IPs in IPv4 range#60
v0l merged 1 commit into
masterfrom
feat/free-ips-endpoint

Conversation

@v0l

@v0l v0l commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add GET /api/admin/v1/ip_ranges/{id}/free_ips endpoint to list unassigned IPs
  • Add list_free_ips_in_range method to NetworkProvisioner for reusable IP enumeration
  • Only available for IPv4 ranges (IPv6 ranges are too large to enumerate)

Changes

  • lnvps_api_common/src/network.rs: Added list_free_ips_in_range method and tests
  • lnvps_api_admin/src/admin/ip_ranges.rs: Added new endpoint handler
  • ADMIN_API_ENDPOINTS.md: Documented new endpoint
  • API_CHANGELOG.md: Added changelog entry

Closes #59

Add GET /api/admin/v1/ip_ranges/{id}/free_ips endpoint that returns
all unassigned IP addresses in an IPv4 range.

- Add list_free_ips_in_range method to NetworkProvisioner
- Only available for IPv4 ranges (IPv6 too large to enumerate)
- Excludes reserved IPs (gateway, network/broadcast addresses)
- Requires ip_range::view permission

Closes #59
@v0l
v0l merged commit 7aba38c into master Feb 22, 2026
5 checks passed
@v0l
v0l deleted the feat/free-ips-endpoint branch February 22, 2026 19:17
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.

Free IP's

1 participant