'Creates a SnapMirror relationship (cDOT 8.2 or later only).'

def create_snapmirror(self, source_vserver, source_volume, destination_vserver, destination_volume, schedule=None, policy=None, relationship_type='data_protection'):

    self._ensure_snapmirror_v2()
    api_args = {'source-volume': source_volume, 'source-vserver': source_vserver, 'destination-volume': destination_volume, 'destination-vserver': destination_vserver, 'relationship-type': relationship_type}
    if schedule:
        api_args['schedule'] = schedule
    if policy:
        api_args['policy'] = policy
    try:
        self.send_request('snapmirror-create', api_args)
    except netapp_api.NaApiError as e:
        if (e.code != netapp_api.ERELATION_EXISTS):
            raise
