Store default_fw_netvm in qubes.xml
This commit is contained in:
parent
de5e06e462
commit
41800eb879
@ -1724,6 +1724,9 @@ class QubesVmCollection(dict):
|
|||||||
|
|
||||||
default_netvm=str(self.default_netvm_qid) \
|
default_netvm=str(self.default_netvm_qid) \
|
||||||
if self.default_netvm_qid is not None else "None"
|
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():
|
for vm in self.values():
|
||||||
@ -1774,6 +1777,12 @@ class QubesVmCollection(dict):
|
|||||||
if default_netvm != "None" else None
|
if default_netvm != "None" else None
|
||||||
#assert self.default_netvm_qid is not 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
|
# Then, read in the TemplateVMs, because a reference to template VM
|
||||||
# is needed to create each AppVM
|
# is needed to create each AppVM
|
||||||
for element in tree.findall("QubesTemplateVm"):
|
for element in tree.findall("QubesTemplateVm"):
|
||||||
|
Loading…
Reference in New Issue
Block a user