diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 0ead77f7..28a2a591 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1215,8 +1215,11 @@ class QubesVm(object): def has_firewall(self): return os.path.exists (self.firewall_conf) + def get_firewall_defaults(self): + return { "rules": list(), "allow": True, "allowDns": True, "allowIcmp": True, "allowYumProxy": False } + def get_firewall_conf(self): - conf = { "rules": list(), "allow": True, "allowDns": True, "allowIcmp": True, "allowYumProxy": False } + conf = self.get_firewall_defaults() try: tree = xml.etree.ElementTree.parse(self.firewall_conf)