3.1.1.1.44.2.2 GetAllDhcpFailoverByServerId

The GetAllDhcpFailoverByServerId procedure is used to retrieve a collection of the entire DhcpFailover instances from ADM_DhcpFailoverRelationTable that are associated to a specific DhcpServer.

The following input parameters are used:

Param_DhcpServerId: This is a signed 64-bit integer, which represents a RecordId of type DhcpServer (section 2.2.4.155) for which the failover relationship records need to be retrieved.

Param_failoverCollection: This is a collection of instances of DhcpFailover.

The following processing steps are performed:

  1. Enumerate the rows in ADM_DhcpFailoverRelationTable having either Server1RecordId or Server2RecordId as Param_DhcpServerId.

  2. Initialize Param_failoverCollection.

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

    1. Create an instance of DhcpFailover with the following assignments and add it to the Param_failoverCollection collection:

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

      2. If Server1RecordId is not 0, copy Server1RecordId into DhcpFailover.Server1RecordId.

      3. If Server2RecordId is not 0, copy Server2RecordId into DhcpFailover.Server2RecordId.

  4. Return from the procedure.