'Create a luncopy.'

def create_luncopy(self, luncopyname, srclunid, tgtlunid, copyspeed):

    url = '/luncopy'
    if (copyspeed not in constants.LUN_COPY_SPEED_TYPES):
        LOG.warning('The    copy    speed    %(copyspeed)s    is    not    valid,    using    default    value    %(default)s    instead.', {'copyspeed': copyspeed, 'default': constants.LUN_COPY_SPEED_MEDIUM})
        copyspeed = constants.LUN_COPY_SPEED_MEDIUM
    data = {'TYPE': 219, 'NAME': luncopyname, 'DESCRIPTION': luncopyname, 'COPYSPEED': copyspeed, 'LUNCOPYTYPE': '1', 'SOURCELUN': ('INVALID;%s;INVALID;INVALID;INVALID' % srclunid), 'TARGETLUN': ('INVALID;%s;INVALID;INVALID;INVALID' % tgtlunid)}
    result = self.call(url, data, 'POST')
    msg = _('Create    luncopy    error.')
    self._assert_rest_result(result, msg)
    self._assert_data_in_result(result, msg)
    return result['data']['ID']
