(profile)
return profile['definition']
Return the definition of an SNMP profile,
    either from the filesystem or from the profile configuration itself.

    Parameters:
    * profile (dict)

    Returns:
    * definition (dict)

    Raises:
    * Exception: if the definition file was not found or is malformed.
Return the definition of an SNMP profile,
    either from the filesystem or from the profile configuration itself.
Return the definition of an SNMP profile either from the filesystem or from the profile configuration itself .
def get_profile_definition(profile):
    # type: (Dict[str, Any]) -> Dict[str, Any]
    """
    Return the definition of an SNMP profile,
    either from the filesystem or from the profile configuration itself.

    Parameters:
    * profile (dict)

    Returns:
    * definition (dict)

    Raises:
    * Exception: if the definition file was not found or is malformed.
    """
    definition_file = profile.get('definition_file')

    if definition_file is not None:
        return _read_profile_definition(definition_file)

    return profile['definition']
def get_profile_definition ( profile ) : # type: (Dict[str, Any]) -> Dict[str, Any] definition_file = profile . get ( 'definition_file' ) if definition_file is not None : return _read_profile_definition ( definition_file ) return profile [ 'definition' ]