'Return the sub string between the delimiters.
:param data: String to manipulate
:param delim1: Delimiter 1
:param delim2: Delimiter 2
:returns: substring between the delimiters'

def get_parsed_data(self, data, delim1, delim2):

    try:
        start = data.index(delim1)
        start = (start + len(delim1))
        end = data.index(delim2)
        return data[start:end]
    except ValueError as e:
        msg = (_('Error    while    parsing    the    data:    %s.') % six.text_type(e))
        LOG.error(msg)
        raise exception.BrocadeZoningHttpException(reason=msg)
