3.19.4.4.1.22 SetDhcpReservationCollectionDelegate

The SetDhcpReservationCollectionDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.SetDhcpReservationCollection. The IpamOperationWithProgressParameter instance in this case MUST be of type SetDhcpReservationCollectionParameters (section 2.2.4.395).

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

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

  2. If SetDhcpReservationCollectionParameters.ReservationRecordIds is NULL or. SetDhcpReservationCollectionParameters.ReservationRecordIds.Count is 0, generate an appropriate SOAP fault (as specified in section 2.2.2.1).

  3. For each reservation identifier DhcpReservationRecordId in the SetDhcpReservationCollectionParameters.ReservationRecordIds collection, do steps 4 and 5.

  4. Call the GetDhcpReservation procedure of ADM_DHCPReservationTable by passing the following values:

  5. Param_reservationId assigned DhcpReservationRecordId.

  6. Local variable DhcpReservation is assigned Result_reservation output from the procedure.

  7. Call the procedure AddOrUpdateReservation of ADM_DHCPReservationTable, passing the following parameters:

  8. Param_addressfamily assigned SetDhcpReservationCollectionParameters.Family.

  9. Param_reservationId assigned DhcpReservationRecordId.

  10. Param_addressId assigned DhcpReservation.Address.

  11. Param_scopeId assigned DhcpReservation.ParentScope.

  12. Param_reservationDetails assigned SetDhcpReservationCollectionParameters.Configuration.

  13. Call SetOverallStatus with Success and 100 percent completion.