3.1.1.1.30.2.2 MovePolicyProcessingOrder
The MovePolicyProcessingOrder procedure uses the IIpamOperationWithProgressCallback interface to provide the details of subtasks, their completion status and overall completion status for the operation to the management client. This procedure is used to change the processing order of a policy that can be associated to either a DHCP scope or a DHCP server.
The following are the input parameters to this procedure:
Param_Policy: The Policy Object
Param_ProcessingDirection: Of type PolicyProcessingOrderDirection.
There is no output from this procedure.
The following are the processing steps involved:
Look up the row Policy1 in the ADM_DhcpPolicyTable that has the same PolicyId as Param_Policy.PolicyId.
If Param_ProcessingDirection value is PolicyProcessingOrderDirection.up, then look up the row Policy2 in the ADM_DhcpPolicyTable that meets the following criteria:
Server is equal to Param_Policy.Server.
If Param_Policy.Level is PolicyLevel.scopeLevel, then Scope is equal to Param_Policy.Scope.
ProcessingOrder is equal to (Param_Policy.ProcessingOrder – 1).
If Param_ProcessingDirection value is PolicyProcessingOrderDirection.down, then look up the row Policy2 in the ADM_DhcpPolicyTable that meets the following criteria:
Server is equal to Param_Policy.Server.
If Param_Policy.Level is PolicyLevel.scopeLevel, then Scope is equal to Param_Policy.Scope.
ProcessingOrder is equal to (Param_Policy.ProcessingOrder + 1).
If the row Policy2 is found, then swap the Policy1.ProcessingOrder and Policy2.ProcessingOrder.