Skip to content

feat(dhcp): support multiple dhcp ranges#1734

Open
m-dilorenzi wants to merge 1 commit into
mainfrom
multiple_dhcp_range
Open

feat(dhcp): support multiple dhcp ranges#1734
m-dilorenzi wants to merge 1 commit into
mainfrom
multiple_dhcp_range

Conversation

@m-dilorenzi

Copy link
Copy Markdown
Collaborator

This pull request refactors the DHCP interface handling to support multiple DHCP ranges per network interface in set and get interfaces APIs, ensuring better flexibility and correctness in DHCP configuration.

  • updated the data structure for interfaces to use a ranges array instead of single first and last fields, allowing each interface to have multiple DHCP ranges. This affects how interfaces are listed, edited, and retrieved
  • added validation to ensure each range is within the interface's subnet, the IPs are non-empty, and the last IP is greater than the first
  • edit logic now deletes existing DHCP configs for the interface and creates new sections for each range
  • the get-interface API (used to retrieve interface details for editing) now includes class_start_ip and class_end_ip fields to indicate the valid IP range for UI input box check

Closes: #1448

@m-dilorenzi m-dilorenzi requested a review from Tbaile June 18, 2026 10:46
@m-dilorenzi m-dilorenzi self-assigned this Jun 18, 2026
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

1 participant