qubes: add 'default_dispvm' property - both Qubes and QubesVM
QubesOS/qubes-issues#2253
This commit is contained in:
parent
ab6f961931
commit
1a215e47ab
@ -583,6 +583,8 @@ class Qubes(qubes.PropertyHolder):
|
|||||||
doc='Which VM to use as NTP proxy for updating AdminVM')
|
doc='Which VM to use as NTP proxy for updating AdminVM')
|
||||||
default_kernel = qubes.property('default_kernel', load_stage=3,
|
default_kernel = qubes.property('default_kernel', load_stage=3,
|
||||||
doc='Which kernel to use when not overriden in VM')
|
doc='Which kernel to use when not overriden in VM')
|
||||||
|
default_dispvm = qubes.VMProperty('default_dispvm', load_stage=3,
|
||||||
|
doc='Default DispVM base for service calls')
|
||||||
|
|
||||||
# TODO #1637 #892
|
# TODO #1637 #892
|
||||||
check_updates_vm = qubes.property('check_updates_vm',
|
check_updates_vm = qubes.property('check_updates_vm',
|
||||||
|
@ -294,6 +294,12 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
saver=(lambda self, prop, value: value.strftime('%s')),
|
saver=(lambda self, prop, value: value.strftime('%s')),
|
||||||
doc='FIXME')
|
doc='FIXME')
|
||||||
|
|
||||||
|
default_dispvm = qubes.VMProperty('default_dispvm',
|
||||||
|
load_stage=4,
|
||||||
|
allow_none=True,
|
||||||
|
default=(lambda self: self.app.default_dispvm),
|
||||||
|
doc='Default VM to be used as Disposable VM for service calls.')
|
||||||
|
|
||||||
#
|
#
|
||||||
# static, class-wide properties
|
# static, class-wide properties
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user