3.19.4.4.1.21 SetDhcpReservationDelegate

The SetDhcpReservationDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.SetDhcpReservation. The IpamOperationWithProgressParameter instance in this case MUST be of type SetDhcpReservationParameters.

This operation is used to update the properties of an existing DHCP reservation. In the following steps, any time a fault is generated, SetOverallStatus SHOULD be called with the fault details:

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

  2. If SetDhcpReservationParameters.Reservation is NULL, generate an appropriate SOAP fault (as specified in section 2.2.2.1).

  3. If SetDhcpReservationParameters.scopeRecordId is NULL, generate an appropriate SOAP fault (as specified in section 2.2.2.1).

  4. Validate the SetDhcpReservationParameters.Reservation using the processing rules listed under ValidateDhcpReservation by passing SetDhcpReservationParameters.Reservation as Param_reservation. If any of the processing rules are not met, an appropriate SOAP fault (as specified in section 2.2.2.1) MUST be returned.

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

  6. Pass Param_addressfamily assigned InterNetwork if SetDhcpReservationParameters.Reservation.Address is IpamIPv4Address or assigned InterNetworkV6 if SetDhcpReservationParameters.Reservation.Address is IpamIPv6Address.

  7. Pass Param_reservationId is assigned SetDhcpReservationParameters.Reservation.RecordId.

  8. Pass Param_scopeId assigned SetDhcpReservationParameters.Reservation.ParentScope.

  9. Pass Param_addressId assigned SetDhcpReservationParameters.Reservation.Address.

  10. Pass Param_reservationDetails assigned SetDhcpReservationParameters.Reservation.

  11. Call SetOverallStatus with Success and 100 percent completion.