dom0: reload firewall rules after DispVM start (#247)

This commit is contained in:
Marek Marczykowski 2011-07-09 17:54:23 +02:00
parent 7e234a4a8d
commit aa77d13170

View File

@ -82,6 +82,10 @@ class QfileDaemonDvm:
qvm_collection.add_new_disposablevm(disp_name, vm_disptempl.template_vm, label=vm.label, dispid=dispid) qvm_collection.add_new_disposablevm(disp_name, vm_disptempl.template_vm, label=vm.label, dispid=dispid)
qvm_collection.save() qvm_collection.save()
qvm_collection.unlock_db() 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 return disp_name