コード例 #1
0
ファイル: shell.py プロジェクト: Funcan/python-brickclient
    def do_attach(self, client, args):
        hostname = args.hostname
        volume = args.identifier
        self._init_cinder_client(args.func)
        device_info = client.attach(self.volumes_client,
                                    volume,
                                    hostname)

        utils.print_dict(device_info)
コード例 #2
0
ファイル: shell.py プロジェクト: nya17y/python-brickclient
    def do_attach(self, client, args):
        # TODO(e0ne): use local hostname by default
        hostname = args.hostname
        volume = args.identifier
        self._init_cinder_client(args.func)
        device_info = client.attach(self.volumes_client,
                                    volume,
                                    hostname)

        utils.print_dict(device_info)
コード例 #3
0
ファイル: shell.py プロジェクト: nya17y/python-brickclient
    def do_connector(self, client, args):
        """Get the connection properties for all protocols."""

        utils.print_dict(client.get_connector())