3.5.4.8.1.22 DhcpScopesByDhcpServerIdListEnumerationParameters

The DhcpScopesByDhcpServerIdListEnumerationParameters processing is done when the EnumInputParameters contains data of type DhcpScopesByDhcpServerIdListEnumerationParameters. The ObjectType MUST be EnumerationObjectType.DhcpScope. This is used to enumerate all the DHCP scopes that have DHCP server instances with a record identifier equal to any of the values specified in the DhcpScopesByDhcpServerIdListEnumerationParameters.DhcpServerIds. The DhcpScopesByDhcpServerIdListEnumerationParameters.AddressFamily value is used to determine the simple table within the ADM_DHCPScopesTable compound table on which the processing has to be done.

The following are the steps involved in identifying the rows that are returned as a part of the enumeration:

  1. Enumerate the rows in the ADM_DHCPScopesTable that have a DHCPServerRecordId value equal to any of the values specified by DhcpScopesByDhcpServerIdListEnumerationParameters.DhcpServerIds.

  2. For each of the rows enumerated previously, perform the following steps to get the associated scopes:

  3. Call the procedure GetScopeFromTable in ADM_DHCPScopesTable with the following parameters:

  4. Param_Id is set to the value of ScopeRecordId of the row enumerated.

  5. Param_addressfamily is assigned the value of DhcpScopesByDhcpServerIdListEnumerationParameters.AddressFamily.

  6. Add the returned Result_scope to EnumOutputData.