Revision 34f9be6d lib/config.py

b/lib/config.py
371 371
      try:
372 372
        ip = gen_free()
373 373
      except StopIteration:
374
        return None
374
        raise errors.ReservationError("Cannot generate IP. Network is full")
375 375
      return ("reserve", ip, net_uuid)
376 376

  
377 377
    _ ,address, _ = self._temporary_ips.Generate([], gen_one, ec_id)

Also available in: Unified diff