mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
cli: --cpu: make numa.cell[0-9]*.discard
an on/off type option
This commit is contained in:
parent
bf3bd824c1
commit
42bb522f0d
@ -2335,7 +2335,7 @@ class ParserCPU(VirtCLIParser):
|
||||
cls.add_arg("numa.cell[0-9]*.memAccess", "memAccess",
|
||||
find_inst_cb=cls.cell_find_inst_cb)
|
||||
cls.add_arg("numa.cell[0-9]*.discard", "discard",
|
||||
find_inst_cb=cls.cell_find_inst_cb)
|
||||
find_inst_cb=cls.cell_find_inst_cb, is_onoff=True)
|
||||
cls.add_arg("numa.cell[0-9]*.memory", "memory",
|
||||
find_inst_cb=cls.cell_find_inst_cb)
|
||||
cls.add_arg("numa.cell[0-9]*.unit", "unit",
|
||||
|
@ -33,7 +33,7 @@ class _CPUCell(XMLBuilder):
|
||||
memory = XMLProperty("./@memory", is_int=True)
|
||||
unit = XMLProperty("./@unit")
|
||||
memAccess = XMLProperty("./@memAccess")
|
||||
discard = XMLProperty("./@discard")
|
||||
discard = XMLProperty("./@discard", is_yesno=True)
|
||||
siblings = XMLChildProperty(_CPUCellSibling, relative_xpath="./distances")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user