import re


def parse_show_snmp_agent_port(raw_result):
    """
    Parse the 'show snmp agent-port' command raw output.

    :param str raw_result: vtysh raw result string.
    :rtype: dict
    :return: The parsed result of the show snmp agent-port

     ::

        {
            'SNMP agent port': '677'
        }

    """

    snmp_agent_port_re = (
        r'\s*SNMP\s*agent\sport\s*:\s*(?P<agent_port>.+)'
    )

    re_result = re.match(snmp_agent_port_re, raw_result)

    if re_result is None:
        return re_result

    result = re_result.groupdict()

    return result