baremetal_client.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:ironic-tempest-plugin 作者: openstack 项目源码 文件源码
def set_node_boot_device(self, node_uuid, boot_device, persistent=False):
        """Set the boot device of the specified node.

        :param node_uuid: The unique identifier of the node.
        :param boot_device: The boot device name.
        :param persistent: Boolean value. True if the boot device will
                           persist to all future boots, False if not.
                           Default: False.

        """
        request = {'boot_device': boot_device, 'persistent': persistent}
        resp, body = self._put_request('nodes/%s/management/boot_device' %
                                       node_uuid, request)
        self.expected_success(http_client.NO_CONTENT, resp.status)
        return body
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号