• Validates that no CIDR blocks in the allocations overlap.

    Parameters

    • allocations: Allocation[]

      Array of allocation objects to validate

    • throwOnOverlap: boolean = false

      Whether to throw an error if overlaps are detected (default: false)

    Returns ValidationResult

    ValidationResult containing validation status and any detected overlaps

    Throws

    If throwOnOverlap is true and overlaps are detected