mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
cli: device: add alias.name=
This commit is contained in:
parent
0eb2b167f9
commit
0e8e3c0bbf
@ -190,6 +190,7 @@
|
||||
</controller>
|
||||
<controller type="xenbus" index="0" maxGrantFrames="64"/>
|
||||
<filesystem type="mount" accessmode="mapped">
|
||||
<alias name="testfsalias"/>
|
||||
<source dir="/source"/>
|
||||
<target dir="/target"/>
|
||||
</filesystem>
|
||||
|
@ -555,7 +555,7 @@ c.add_compare("""
|
||||
--hostdev usb_5_20 --hostdev usb_5_21
|
||||
|
||||
|
||||
--filesystem /source,/target
|
||||
--filesystem /source,/target,alias.name=testfsalias
|
||||
--filesystem template_name,/,type=template,mode=passthrough
|
||||
--filesystem type=file,source=/tmp/somefile.img,target=/mount/point,accessmode=squash
|
||||
|
||||
|
@ -2466,6 +2466,8 @@ def _add_common_device_args(cls, boot_order=False):
|
||||
cls.add_arg("address.zpci.uid", "address.zpci_uid")
|
||||
cls.add_arg("address.zpci.fid", "address.zpci_fid")
|
||||
|
||||
cls.add_arg("alias.name", "alias.name")
|
||||
|
||||
def set_boot_order_cb(self, inst, val, virtarg):
|
||||
val = int(val)
|
||||
self.guest.reorder_boot_order(inst, val)
|
||||
|
Loading…
Reference in New Issue
Block a user