3.19.4.4.1.26 DhcpFailoverRemoveScopesDelegate
The DhcpFailoverRemoveScopesDelegate processing is done when the IpamOperationWithProgressParameter.OperationId is AdminOperationId.RemoveDhcpFailoverScopes. The IpamOperationWithProgressParameter instance in this case MUST be of type DhcpFailoverRemoveScopesParameters.
This operation is used to remove scopes from an existing failover relationship. The following are the steps involved. In these steps, any time a fault is generated, the SetOverallStatus SHOULD be called with the fault details:
If IpamOperationWithProgressParameter is NULL or not of type DhcpFailoverRemoveScopesParameters, generate an appropriate SOAP fault (as specified in section 2.2.2.1). Project IpamOperationWithProgressParameter in a local variable as DhcpFailoverRemoveScopesParameters.
If AddScopesFailoverParameters.Failover is NULL, AddScopesFailoverParameters.ScopeIds is NULL, or AddScopesFailoverParameters.ScopeIds.Count is 0, generate an appropriate SOAP fault (as specified in section 2.2.2.1).
For each DHCP scope identifier in the list, AddScopesFailoverParameters.ScopeIds, put the reference of the scope identifier in the localDhcpScopeId variable, and do the following step:
Delete the row from the ADM_DhcpScopeFailoverTable that has ADM_DhcpScopeFailoverTable.ScopeId equal to localDhcpScopeId.
Call SetOverallStatus with Success and 100% completion.