baremetal_client.py 文件源码

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

项目:ironic-tempest-plugin 作者: openstack 项目源码 文件源码
def set_console_mode(self, node_uuid, enabled):
        """Start and stop the node console.

        :param node_uuid: Unique identifier of the node in UUID format.
        :param enabled: Boolean value; whether to enable or disable the
                        console.

        """

        enabled = {'enabled': enabled}
        resp, body = self._put_request('nodes/%s/states/console' % node_uuid,
                                       enabled)
        self.expected_success(http_client.ACCEPTED, resp.status)
        return resp, body
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号