mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 01:16:10 +00:00
fix(nwfilters): two changes at once do not undo each other
A rule or reference change reads a filter and defines it again whole: two admins changing one filter at once each defined their copy, and the second removed the first's rule. Changes to a host's filters (create, clone, delete, rules, references, XML) now run one at a time; one that finds another running is told to try again. A VM's NIC form sends back its source, model, filter and MAC whole: a form opened before another admin changed the NIC's filter put the old filter back. The form now sends a fingerprint of the NIC as it showed it, and a NIC changed meanwhile is refused.
This commit is contained in:
parent
2f7516b7f9
commit
b664e34161
12 changed files with 714 additions and 631 deletions
|
|
@ -931,6 +931,8 @@ class wvmInstance(wvmConnect):
|
|||
"filterref": filterref_inst,
|
||||
"inbound": inbound,
|
||||
"outbound": outbound,
|
||||
# the NIC as a form shows it: a form shown before another change is refused
|
||||
"seen": util.digest(etree.tostring(net, encoding="unicode", with_tail=False)),
|
||||
}
|
||||
)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue