You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dfdc7f5
Browse filesBrowse the repository at this point in the historyBrowse files
network: validate the isolated DHCP range before persisting and guard it on reservation
Validate a custom isolated-network DHCP range before committing the network, so a
range outside the CIDR (or reversed, or over the gateway) is rejected up front
instead of throwing after the network is saved and leaving an orphaned network.
The checks move into validateIsolatedNetworkDhcpRange, reused by
storeIsolatedNetworkDhcpRange.
Also reject an IP reservation (guestvmcidr) that would leave the stored DHCP range
outside the reserved Guest VM CIDR, which would otherwise starve guest IP
allocation.
thrownewInvalidParameterValueException(String.format("The network has a custom DHCP range %s-%s that falls outside the requested Guest VM CIDR %s. Remove or adjust the DHCP range before applying the reservation.",
0 commit comments