Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    def do_connector(self, client, args):
        """Get the connection properties for all protocols."""

        utils.print_dict(client.get_connector())