3.1.1.1.13.2.6 GetScopesForSuperscope
The GetScopesForSuperscope procedure can only be applied on IPv4 DhcpScope table. This procedure retrieves all the IPv4 DHCP scopes that are assigned to a specific DHCP superscope.
The following input parameter is used.
Param_superscopeId: A 64-bit signed integer specifying the record identifier of the DhcpSuperscopeV4 instance for which the mapping scopes are being requested.
The following is the output parameter from this procedure.
Result_Scopes: A collection of type DhcpScopeV4.
The following steps are performed against the IPAM data store:
Enumerate the rows in IPv4 table of ADM_DHCPScopesTable where SuperscopeId is equal to Param_superscopeId.
Initialize Result_Scopes.
For each row that meets the criteria in step 1, perform the following steps:
Create an instance of DhcpScopeV4 with the following assignments:
Set DhcpScopeV4.RecordId to RecordId.
Set DhcpScopeV4.ParentDhcpServerRecordId to DHCPServerRecordId.
Copy ScopeDetails of the row to DhcpScopeV4.
Call the procedure GetDhcpOptions of ADM_DhcpOptionsTable with the following parameters:
Param_addressfamily is set to InterNetwork.
Param_ScopeRecordId is set to DhcpScopeV4.RecordId.
Param_serverRecordId is set to DhcpScopeV4.ParentDhcpServerRecordId.
Assign the Result_optionCollection to DhcpScopeV4.Options.
Add the DhcpScopeV4 instance to Result_Scopes collection.
Return Result_Scopes as the output of the procedure.