lisa.platforms.platinfo.KernelConfigKeyDesc#
- class lisa.platforms.platinfo.KernelConfigKeyDesc(name, help, classinfo, newtype=None, deepcopy_val=True)[source]#
Bases:
KeyDescAttributes
helpinheritedHelp description associated with the key.
nameinheritedName of that key.
parentinheritedParent
LevelKeyDesc.Properties
newtypeinheritedUnique type associated with that key.
pathinheritedPath in the config file from the root to that key.
qualnameinheritedQualified name of the configuration key used for error reporting.
Methods
Format the value for pretty printing.
get_help()inheritedGet a help message describing the key.
validate_val()inheritedCheck that the value is an instance of one of the type specified in the
self.classinfo.
Attributes#
- KernelConfigKeyDesc.help#
Inherited attribute, see
lisa.conf.KeyDescBase.helpHelp description associated with the key.
- KernelConfigKeyDesc.name#
Inherited attribute, see
lisa.conf.KeyDescBase.nameName of that key.
- KernelConfigKeyDesc.parent#
Inherited attribute, see
lisa.conf.KeyDescBase.parentParent
LevelKeyDesc.
Properties#
- property KernelConfigKeyDesc.newtype#
Inherited property, see
lisa.conf.KeyDesc.newtypeUnique type associated with that key.
- property KernelConfigKeyDesc.path#
Inherited property, see
lisa.conf.KeyDescBase.pathPath in the config file from the root to that key.
- property KernelConfigKeyDesc.qualname#
Inherited property, see
lisa.conf.KeyDescBase.qualnameQualified name of the configuration key used for error reporting.
Methods#
- KernelConfigKeyDesc.pretty_format(v)[source]#
Format the value for pretty printing.
- Parameters:
v (object) – Value of the key that is being printed
- Returns:
A string
- KernelConfigKeyDesc.get_help(style=None, last=False, children=True)#
Inherited method, see
lisa.conf.KeyDesc.get_help()Get a help message describing the key.
- KernelConfigKeyDesc.validate_val(val)#
Inherited method, see
lisa.conf.KeyDesc.validate_val()Check that the value is an instance of one of the type specified in the
self.classinfo.