3.1.1.1.45.2.1 GetDhcpFailoverScopes

The GetDhcpFailoverScopes procedure retrieves all the DHCP scopes that participate in the given DHCP failover relationship.

The following are the input parameters to this procedure:

Param_Failover: Of type DhcpFailover.

Param_scopeCollection: This is an output parameter that is a collection of type DhcpScope. This collection contains all the DhcpScope instances that are part of a specific DHCP failover relationship.

The following are the steps involved in the processing:

  1. Enumerate all the rows in ADM_DhcpScopeFailoverTable that have FailoverRelationId as Param_Failover.RecordId.

  2. Initialize Param_scopeCollection.

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

    1. Call GetScopeFromTable procedure on ADM_DHCPScopesTable with the following parameters:

      1. Param_Id is set to ScopeId.

      2. Param_addressFamily is set to AddressFamily.InterNetwork.

    2. If Result_scope is not NULL, then add it to Param_scopeCollection.

  4. Return from the procedure.