Share via


3.5.4.8.1.82 DhcpScopeByPrefixAndServerNameEnumerationParameters

The DhcpScopeByPrefixAndServerNameEnumerationParameters processing is done when the EnumInputParameters contains data of type DhcpScopeByPrefixAndServerNameEnumerationParameters. The ObjectType MUST be EnumerationObjectType.DhcpScope. This is used to enumerate the DHCP scope that is present on the specified DHCP server and the specified scope id. The DhcpScopeByPrefixAndServerNameEnumerationParameters.AddressFamily is used to determine the simple table within the ADM_DHCPScopesTable compound table on which the processing has to be done.

The following procedure identifies the rows to be returned as a part of the enumeration:

  1. If DhcpScopeByPrefixAndServerNameEnumerationParameters.ServerName is NULL or empty string return an empty collection.

  2. Enumerate all the rows in the ADM_DHCPServerTable and retrieve the row with DhcpScopeByPrefixAndServerNameEnumerationParameters.ServerName. Store the ServerId in a local variable serverId. If no such row is found, an appropriate SOAP fault MUST be generated.

  3. Enumerate all the rows in the ADM_DHCPScopeTable and retrieve the rows with ServerId as local variable serverId and call these as OutputByServer. If no such rows are retrieved, then return an empty collection.

  4. If DhcpScopeByPrefixAndServerNameEnumerationParameters.ScopeId is NULL, add the rows in OutputByServer to EnumOutputData and return the same.

  5. If DhcpScopeByPrefixAndServerNameEnumerationParameters.ScopeId is not NULL, retrieve the row from OutputByServer with scopeId as DhcpScopeByPrefixAndServerNameEnumerationParameters.ScopeId. If no row is retrieved, then return an empty collection. Else add this retrieved row to EnumOutputData and return the same.