Properly set FwVM xenstore files

This commit is contained in:
Tomasz Sterna 2011-03-02 15:01:30 +01:00
parent d758eb8258
commit 353f04e186

View File

@ -461,7 +461,7 @@ class QubesVm(object):
"/local/domain/{0}/qubes_netvm_network".format(xid), "/local/domain/{0}/qubes_netvm_network".format(xid),
self.network]) self.network])
elif self.netvm_vm is not None: if self.netvm_vm is not None:
retcode = subprocess.check_call ([ retcode = subprocess.check_call ([
"/usr/bin/xenstore-write", "/usr/bin/xenstore-write",
"/local/domain/{0}/qubes_ip".format(xid), "/local/domain/{0}/qubes_ip".format(xid),
@ -470,19 +470,17 @@ class QubesVm(object):
retcode = subprocess.check_call ([ retcode = subprocess.check_call ([
"/usr/bin/xenstore-write", "/usr/bin/xenstore-write",
"/local/domain/{0}/qubes_netmask".format(xid), "/local/domain/{0}/qubes_netmask".format(xid),
self.netmask]) self.netvm_vm.netmask])
retcode = subprocess.check_call ([ retcode = subprocess.check_call ([
"/usr/bin/xenstore-write", "/usr/bin/xenstore-write",
"/local/domain/{0}/qubes_gateway".format(xid), "/local/domain/{0}/qubes_gateway".format(xid),
self.gateway]) self.netvm_vm.gateway])
retcode = subprocess.check_call ([ retcode = subprocess.check_call ([
"/usr/bin/xenstore-write", "/usr/bin/xenstore-write",
"/local/domain/{0}/qubes_secondary_dns".format(xid), "/local/domain/{0}/qubes_secondary_dns".format(xid),
self.secondary_dns]) self.netvm_vm.secondary_dns])
else:
pass
def get_total_xen_memory(self): def get_total_xen_memory(self):