mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-03 01:18:00 +03:00
cli: introduce --resource fibrechannel.appid option
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
be05135867
commit
0953e1aea1
@ -19,6 +19,7 @@
|
|||||||
</numatune>
|
</numatune>
|
||||||
<resource>
|
<resource>
|
||||||
<partition>/virtualmachines/production</partition>
|
<partition>/virtualmachines/production</partition>
|
||||||
|
<fibrechannel appid="myapplication"/>
|
||||||
</resource>
|
</resource>
|
||||||
<os>
|
<os>
|
||||||
<type arch="x86_64" machine="q35">hvm</type>
|
<type arch="x86_64" machine="q35">hvm</type>
|
||||||
|
@ -479,7 +479,7 @@ c.add_compare("""
|
|||||||
--memorybacking hugepages=on
|
--memorybacking hugepages=on
|
||||||
--features apic=off
|
--features apic=off
|
||||||
--clock offset=localtime
|
--clock offset=localtime
|
||||||
--resource /virtualmachines/production
|
--resource /virtualmachines/production,fibrechannel.appid=myapplication
|
||||||
--events on_crash=restart
|
--events on_crash=restart
|
||||||
--metadata genid_enable=yes
|
--metadata genid_enable=yes
|
||||||
--sysinfo host
|
--sysinfo host
|
||||||
|
@ -2003,6 +2003,7 @@ class ParserResource(VirtCLIParser):
|
|||||||
def _init_class(cls, **kwargs):
|
def _init_class(cls, **kwargs):
|
||||||
VirtCLIParser._init_class(**kwargs)
|
VirtCLIParser._init_class(**kwargs)
|
||||||
cls.add_arg("partition", "partition")
|
cls.add_arg("partition", "partition")
|
||||||
|
cls.add_arg("fibrechannel.appid", "fibrechannel_appid", can_comma=True)
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
|
@ -14,6 +14,7 @@ class DomainResource(XMLBuilder):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
XML_NAME = "resource"
|
XML_NAME = "resource"
|
||||||
_XML_PROP_ORDER = ["partition"]
|
_XML_PROP_ORDER = ["partition", "fibrechannel_appid"]
|
||||||
|
|
||||||
partition = XMLProperty("./partition")
|
partition = XMLProperty("./partition")
|
||||||
|
fibrechannel_appid = XMLProperty("./fibrechannel/@appid")
|
||||||
|
Loading…
Reference in New Issue
Block a user