Skip to content

feat(dhcp): support multiple dhcp ranges#788

Merged
Tbaile merged 2 commits into
mainfrom
multiple_dhcp_range
Jun 22, 2026
Merged

feat(dhcp): support multiple dhcp ranges#788
Tbaile merged 2 commits into
mainfrom
multiple_dhcp_range

Conversation

@m-dilorenzi

Copy link
Copy Markdown
Collaborator

This pull request enhances the DHCP interface management in the DNS/DHCP standalone components by adding support for multiple DHCP IP ranges per interface. It updates the data model, form UI, and validation logic to handle multiple ranges, improves user feedback, and updates translations accordingly.

  • changed the DhcpInterface type to use a ranges array (with first and last properties) instead of single first/last fields, enabling multiple IP ranges per DHCP interface
  • updated the DHCP interface edit drawer (EditDhcpInterfaceDrawer.vue) to allow adding/removing multiple IP ranges, with corresponding UI controls and placeholders
  • adjusted the DHCP card display (DhcpCard.vue) to show all configured IP ranges instead of just one
  • implemented comprehensive validation for each IP range, including checks for required fields, valid IP addresses, range order, and ensuring IPs are within the interface's class range

Closes: NethServer/nethsecurity#1448

@m-dilorenzi m-dilorenzi requested a review from Tbaile June 18, 2026 10:49
@m-dilorenzi m-dilorenzi self-assigned this Jun 18, 2026
@Tbaile Tbaile merged commit e8f97d8 into main Jun 22, 2026
5 checks passed
@Tbaile Tbaile deleted the multiple_dhcp_range branch June 22, 2026 07:20
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.

Support multiple DHCP ranges from UI

2 participants