dom0: reload firewall rules after DispVM start (#247)
This commit is contained in:
parent
7e234a4a8d
commit
aa77d13170
@ -82,6 +82,10 @@ class QfileDaemonDvm:
|
||||
qvm_collection.add_new_disposablevm(disp_name, vm_disptempl.template_vm, label=vm.label, dispid=dispid)
|
||||
qvm_collection.save()
|
||||
qvm_collection.unlock_db()
|
||||
# Reload firewall rules
|
||||
for vm in qvm_collection.values():
|
||||
if vm.is_proxyvm() and vm.is_running():
|
||||
vm.write_iptables_xenstore_entry()
|
||||
|
||||
return disp_name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user