- try:
- new_ip = self.cfg.GenerateIp(new_net_uuid, self.proc.GetECId())
- except errors.ReservationError:
- raise errors.OpPrereqError("Unable to get a free IP"
- " from the address pool",
- errors.ECODE_STATE)
- self.LogInfo("Chose IP %s from network %s", new_ip, new_net_obj.name)
- params[constants.INIC_IP] = new_ip
- elif new_ip != old_ip or new_net_uuid != old_net_uuid: