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:
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.
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).
For each reservation identifier ReservationRecordId in DeleteDhcpReservationCollectionParameters.ReservationRecordIds, do the following:
Call the procedure DeleteReservation of ADM_DHCPReservationTable, passing the following parameters:
Param_addressfamily assigned DeleteDhcpReservationCollectionParameters.Family.
Param_reservationId assigned ReservationRecordId.
Call SetOverallStatus with Success and 100 percent completion.