import re


def parse_diag_dump(raw_result):
    """
    Parse the 'diag-dump' command raw output.

    :param str raw_result: vtysh raw result string.
    :rtype: dict
    :return: The parsed result of the diag-dump command \
        in a dictionary of the form:

     ::

        {
            'result': 0
        }
    """

    diag_dump_re = (
        r'(Diagnostic dump captured for feature)'
    )

    result = {}
    for line in raw_result.splitlines():
        re_result = re.search(diag_dump_re, line)
        if re_result:
            result['result'] = 0
            break
        else:
            result['result'] = 1
    return result