dom0/core: fix QubesVM.gateway
To be consistent with QubesNetVM, where gateway property contain gateway IP for _other_ VMs, in non-network-provider VM it should be empty.
This commit is contained in:
parent
1a8682ace3
commit
aea8d189f0
@ -427,9 +427,7 @@ class QubesVm(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def gateway(self):
|
def gateway(self):
|
||||||
if self.netvm is not None:
|
# This is gateway IP for _other_ VMs, so make sense only in NetVMs
|
||||||
return self.netvm.gateway
|
|
||||||
else:
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user