'Rename vdisk'

def _rename_vdisk(self, vdisk_name, new_name):

    vdisk_defined = self._is_vdisk_defined(vdisk_name)
    if (not vdisk_defined):
        LOG.warning('warning:    Tried    to    rename    vdisk    %s    but    it    does    not    exist.', vdisk_name)
        return
    ssh_cmd = ['svctask', 'chvdisk', '-name', new_name, vdisk_name]
    (out, err) = self._ssh(ssh_cmd)
    self._assert_ssh_return((not out.strip()), ('_rename_vdisk    %(name)s' % {'name': vdisk_name}), ssh_cmd, out, err)
    LOG.info('Renamed    %(vdisk)s    to    %(newname)s    .', {'vdisk': vdisk_name, 'newname': new_name})
