Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
If DhcpScopeByPrefixAndServerNameEnumerationParameters.ServerName is NULL or empty string return an empty collection.
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.
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.
If DhcpScopeByPrefixAndServerNameEnumerationParameters.ScopeId is NULL, add the rows in OutputByServer to EnumOutputData and return the same.
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.