import re


def parse_show_ntp_trusted_keys(raw_result):
    """
    Parse the 'show ntp trusted-keys' command raw output.

    :param str raw_result: vtysh raw result string.
    :rtype: dict
    :return: The parsed result of the show ntp trusted-keys command \
        in a dictionary of the form:

     ::

        {
            '11': { 'key_id': '11' },
            '12': { 'key_id': '12' }
        }
    """

    ntp_trusted_key_re = (
        r'(?P<key_id>\d+)'
    )

    result = {}
    for line in raw_result.splitlines():
        re_result = re.search(ntp_trusted_key_re, line)
        if re_result:
            partial = re_result.groupdict()
            result[partial['key_id']] = partial

    return result