3.5.4.8.1.6 DHCPEffectiveScopePoliciesEnumerationParameters
The DHCPEffectiveScopePoliciesEnumerationParameters processing is done when the EnumInputParameters contains data of type DHCPEffectiveScopePoliciesEnumerationParameters. The ObjectType MUST be EnumerationObjectType.DHCPPolicy. This is used to enumerate the effective DHCP policies for a given scope. These would be the scope level policies for the given scope in DHCPEffectiveScopePoliciesEnumerationParameters.DhcpScope followed by the server level policies corresponding to parent server of DHCPEffectiveScopePoliciesEnumerationParameters.DhcpScope.
The following are the steps involved in identifying the rows to be returned as a part of the enumeration:
Call the procedure GetPoliciesForScopeByScopeId of ADM_DHCPPolicyTable passing DHCPEffectiveScopePoliciesEnumerationParameters.DhcpScope as Param_scopeId.
Add the entries in Result_scopePolicies to EnumOutputData.
Retrieve the parent DHCP server ID to which the passed scope belongs to, from DHCPEffectiveScopePoliciesEnumerationParameters.DhcpScope.DHCPServerRecordId and initialize that into local variable serverId.
Call the procedure GetPoliciesForServerByServerId of ADM_DHCPPolicyTable passing serverId as Param_serverId.
Add the entries in Result_serverPolicies to EnumOutputData.