Function

NM-1.0NMutils_is_uuidDeprecated 1.32

  • Checks if str is a UUID

    Parameters

    • OptionalDeprecatedstr: string

      a string that might be a UUID

    Returns boolean

    true if str is a UUID, false if not In older versions, nm_utils_is_uuid() did not accept null as str argument. Don't pass null if you run against older versions of libnm.

    since 1.32: older versions of NetworkManager had a wrong understanding of what makes a valid UUID. This function can thus accept some inputs as valid, which in fact are not valid UUIDs.