Store default_fw_netvm in qubes.xml

This commit is contained in:
Marek Marczykowski 2011-03-11 02:09:32 +01:00
parent de5e06e462
commit 41800eb879

View File

@ -1724,6 +1724,9 @@ class QubesVmCollection(dict):
default_netvm=str(self.default_netvm_qid) \
if self.default_netvm_qid is not None else "None"
default_fw_netvm=str(self.default_fw_netvm_qid) \
if self.default_fw_netvm_qid is not None else "None"
)
for vm in self.values():
@ -1774,6 +1777,12 @@ class QubesVmCollection(dict):
if default_netvm != "None" else None
#assert self.default_netvm_qid is not None
default_fw_netvm = element.get("default_netvm")
if default_fw_netvm is not None:
self.default_fw_netvm_qid = int(default_fw_netvm) \
if default_fw_netvm != "None" else None
#assert self.default_netvm_qid is not None
# Then, read in the TemplateVMs, because a reference to template VM
# is needed to create each AppVM
for element in tree.findall("QubesTemplateVm"):