本文整理汇总了Python中nova.compute.utils.get_device_name_for_instance函数的典型用法代码示例。如果您正苦于以下问题:Python get_device_name_for_instance函数的具体用法?Python get_device_name_for_instance怎么用?Python get_device_name_for_instance使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_device_name_for_instance函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _validate_device
def _validate_device(self, device=None):
bdms = db.block_device_mapping_get_all_by_instance(
self.context, self.instance['uuid'])
return compute_utils.get_device_name_for_instance(self.context,
self.instance,
bdms,
device)
示例2: _validate_device
def _validate_device(self, device=None):
bdms = block_device_obj.BlockDeviceMappingList.get_by_instance_uuid(
self.context, self.instance['uuid'])
return compute_utils.get_device_name_for_instance(
self.context, self.instance, bdms, device)
示例3: _validate_device
def _validate_device(self, device=None):
bdms = base.obj_make_list(self.context,
objects.BlockDeviceMappingList(), objects.BlockDeviceMapping,
self.data)
return compute_utils.get_device_name_for_instance(
self.instance, bdms, device)
示例4: _validate_device
def _validate_device(self, device=None):
return compute_utils.get_device_name_for_instance(self.context,
self.instance,
device)