Update firewall iptables file during VM start

This commit is contained in:
Tomasz Sterna 2011-03-02 15:04:11 +01:00
parent 45f84b1713
commit 0a8249d83f

View File

@ -552,9 +552,15 @@ class QubesVm(object):
self.force_shutdown() self.force_shutdown()
raise OSError ("ERROR: Cannot attach to network backend!") raise OSError ("ERROR: Cannot attach to network backend!")
#if verbose:
# print "--> Updating FirewallVMs rules..."
#for vm in qvm_collection.values():
# if vm.is_fwvm():
# vm.write_iptables_xenstore_entry()
if verbose: if verbose:
print "--> Starting the VM..." print "--> Starting the VM..."
xend_session.session.xenapi.VM.unpause (self.session_uuid) xend_session.session.xenapi.VM.unpause (self.session_uuid)
# perhaps we should move it before unpause and fork? # perhaps we should move it before unpause and fork?
if debug_console: if debug_console: