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
c3a403f395
commit
3255f81a1c
@ -435,10 +435,8 @@ class QubesVm(object):
|
||||
|
||||
@property
|
||||
def gateway(self):
|
||||
if self.netvm is not None:
|
||||
return self.netvm.gateway
|
||||
else:
|
||||
return None
|
||||
# This is gateway IP for _other_ VMs, so make sense only in NetVMs
|
||||
return None
|
||||
|
||||
@property
|
||||
def secondary_dns(self):
|
||||
|
Loading…
Reference in New Issue
Block a user