3.19.4.4.1.5 DeleteDhcpScopeDelegate
The DeleteDhcpScopeDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.DeleteDhcpScope. The IpamOperationWithProgressParameter instance in that case MUST be of type DeleteDhcpScopeParameters.
This operation deletes an existing DHCP scope. In the following steps, any time a fault is generated, SetOverallStatus is called with the fault details:
If IpamOperationWithProgressParameter is NULL or not of type DeleteDhcpScopeParameters, generate an appropriate SOAP fault (as specified in section 2.2.2.1). Project IpamOperationWithProgressParameter in a local variable as DeleteDhcpScopeParameters.
Validate that the DeleteDhcpScopeParameters.Scope.addressFamily is either InterNetwork or InterNetworkV6. If not, generate an appropriate SOAP fault.
Look up the ADM_IPRangeTable for the row in which the ScopeRecordId is DeleteDhcpScopeParameters.Scope.scopeRecordId using the DeleteDhcpScopeParameters.Scope.addressFamily to select the simple table within the ADM_IPRangeTable compound table.
Using the RecordId of the row, delete the IPRange by following the steps as described in DeleteRange by passing DeleteRange.rangeRecordId with the RecordId and passing DeleteDhcpScopeParameters.Scope.addressFamily as DeleteRange.addressFamily.
Delete the row in ADM_DHCPScopesTable that has a RecordId value the same as DeleteDhcpScopeParameters.Scope.scopeRecordId.
Call SetOverallStatus with Success and 100 percent completion.