Revision 3d736ac9 lib/config.py

b/lib/config.py
378 378
      try:
379 379
        ip = pool.GenerateFree()
380 380
      except errors.AddressPoolError:
381
        raise errors.ReservationError("Cannot generate IP. Network is full")
381
        raise errors.OpPrereqError("Cannot generate IP. Network is full",
382
                                   errors.ECODE_STATE)
382 383
      return (constants.RESERVE_ACTION, ip, net_uuid, external)
383 384

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

Also available in: Unified diff