3.19.4.4.1.20 DeleteDhcpReservationCollectionDelegate

The DeleteDhcpReservationCollectionDelegate operation is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.DeleteDhcpReservationCollection. The IpamOperationWithProgressParameter instance in this case MUST be of type DeleteDhcpReservationCollectionParameters.

This operation deletes a collection of existing DHCP reservations. In the following steps, any time a fault is generated, the SetOverallStatus SHOULD be called with the fault details:

  1. If IpamOperationWithProgressParameter is NULL or not of type DeleteDhcpReservationCollectionParameters, generate an appropriate SOAP fault (as specified in section 2.2.2.1). Project IpamOperationWithProgressParameter in a local variable as DeleteDhcpReservationCollectionParameters.

  2. If DeleteDhcpReservationCollectionParameters.ReservationRecordIds is NULL, DeleteDhcpReservationCollectionParameters.ReservationRecordIds.Count is 0, DeleteDhcpReservationCollectionParameters.Flag is greater than DhcpReservationDeletionFlag.DeleteIPAddressAndDnsRecord, or DeleteDhcpReservationCollectionParameters.Flag is greater than DhcpReservationDeletionFlag.DeleteIPAddressAndDnsRecord, generate an appropriate SOAP fault (as specified in section 2.2.2.1).

  3. For each reservation identifier ReservationRecordId in DeleteDhcpReservationCollectionParameters.ReservationRecordIds, do the following:

  4. Call the procedure DeleteReservation of ADM_DHCPReservationTable, passing the following parameters:

  5. Param_addressfamily assigned DeleteDhcpReservationCollectionParameters.Family.

  6. Param_reservationId assigned ReservationRecordId.

  7. Call SetOverallStatus with Success and 100 percent completion.