dom0/qvm-firewall: provide custom vif name by QubesHVM

This commit is contained in:
Marek Marczykowski 2012-03-02 01:21:40 +01:00
parent c13c1c920f
commit afecabdc59

View File

@ -2128,6 +2128,14 @@ class QubesHVm(QubesVm):
def reset_volatile_storage(self, **kwargs):
pass
@property
def vif(self):
if not self.is_running():
return None
if self.netvm_vm is None:
return None
return "vif{0}.+".format(self.stubdom_xid)
def run(self, command, **kwargs):
raise NotImplementedError("Needs qrexec agent - TODO")