1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(networks): a fixed address has a host name, a host address and is changed as shown

dnsmasq skips a fixed address whose name is not a host name ("bad DHCP
host name"): the VM got no fixed address while the page said it was set.
A name now has only letters, digits, '.', '_' and '-', as the dialog
already asks.

An IPv4 fixed address or DHCP range end may no longer be the subnet's
network or broadcast address.

The edit dialog sends the entry's MAC or DUID and name as the page showed
them; an entry another admin changed meanwhile is refused instead of being
changed back.
This commit is contained in:
catborise 2026-11-12 12:51:37 +03:00
parent e264104e85
commit a78d92e7aa
9 changed files with 202 additions and 142 deletions

View file

@ -17,6 +17,9 @@ function fillFrom(dialogId, fill) {
}
fillFrom("FixedAddress", function (form, data) {
form.elements.original.value = data.original || "";
// the entry as shown: a change made meanwhile is not undone
form.elements.original_id.value = data.original ? data.mac : "";
form.elements.original_name.value = data.original ? data.name : "";
form.elements.address.value = data.address || "";
form.elements.mac.value = data.mac || "";
form.elements.name.value = data.name || "";