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:
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.
If SetDhcpReservationCollectionParameters.ReservationRecordIds is NULL or. SetDhcpReservationCollectionParameters.ReservationRecordIds.Count is 0, generate an appropriate SOAP fault (as specified in section 2.2.2.1).
For each reservation identifier DhcpReservationRecordId in the SetDhcpReservationCollectionParameters.ReservationRecordIds collection, do steps 4 and 5.
Call the GetDhcpReservation procedure of ADM_DHCPReservationTable by passing the following values:
Param_reservationId assigned DhcpReservationRecordId.
Local variable DhcpReservation is assigned Result_reservation output from the procedure.
Call the procedure AddOrUpdateReservation of ADM_DHCPReservationTable, passing the following parameters:
Param_addressfamily assigned SetDhcpReservationCollectionParameters.Family.
Param_reservationId assigned DhcpReservationRecordId.
Param_addressId assigned DhcpReservation.Address.
Param_scopeId assigned DhcpReservation.ParentScope.
Param_reservationDetails assigned SetDhcpReservationCollectionParameters.Configuration.
Call SetOverallStatus with Success and 100 percent completion.