subnet-overlap - v1.1.0
    Preparing search index...

    Function default

    • Check if a subnet overlaps with any existing subnets

      Parameters

      • existedCidrs: string[]

        Array of existing subnet CIDR notations

      • nowCidr: string

        The subnet CIDR notation to check

      Returns boolean

      true if there is an overlap, false otherwise

      If existedCidrs is not an array or nowCidr is not a string