lisa.platforms.platinfo.KernelConfigKeyDesc#
- class lisa.platforms.platinfo.KernelConfigKeyDesc(name, help, classinfo, newtype=None, deepcopy_val=True)[source]#
Bases:
KeyDesc
Attributes
help
inheritedHelp description associated with the key.
name
inheritedName of that key.
parent
inheritedParent
LevelKeyDesc
.Properties
newtype
inheritedUnique type associated with that key.
path
inheritedPath in the config file from the root to that key.
qualname
inheritedQualified 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.help
Help description associated with the key.
- KernelConfigKeyDesc.name#
Inherited attribute, see
lisa.conf.KeyDescBase.name
Name of that key.
- KernelConfigKeyDesc.parent#
Inherited attribute, see
lisa.conf.KeyDescBase.parent
Parent
LevelKeyDesc
.
Properties#
- property KernelConfigKeyDesc.newtype#
Inherited property, see
lisa.conf.KeyDesc.newtype
Unique type associated with that key.
- property KernelConfigKeyDesc.path#
Inherited property, see
lisa.conf.KeyDescBase.path
Path in the config file from the root to that key.
- property KernelConfigKeyDesc.qualname#
Inherited property, see
lisa.conf.KeyDescBase.qualname
Qualified 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
.