cli: device: add alias.name=

This commit is contained in:
Cole Robinson 2019-05-14 12:23:00 -04:00
parent 0eb2b167f9
commit 0e8e3c0bbf
3 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -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

View File

@ -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)