3.1.1.1.32.2.1 GetPolicySubrangesForPolicyId

The GetPolicySubrangesForPolicyId procedure is used to retrieve all the DHCP policy subranges that are associated with a specific DHCP policy.

The input parameter for this procedure is the following:

Param_policyId: A signed 64-bit integer.

The output parameter from this procedure is the following:

Result_PolicyRanges: A collection of type DhcpPolicyRangeV4.

The following processing steps are involved:

  1. Enumerate the rows in ADM_DhcpPolicySubrangeTable having PolicyId being Param_policyId.

  2. Initialize Result_PolicyRanges.

  3. For each row meeting the criteria mentioned in step 1, perform the following steps:

  4. Create an instance of DhcpPolicyRangeV4 with the following assignments and add it to the Result_PolicyRanges collection:

    1. Assign DhcpPolicyRangeV4.RecordId with RecordId of the row.

    2. Copy the PolicySubrangeDetails to DhcpPolicyRangeV4 instance.

  5. Return Result_PolicyRanges as the output of the procedure.