3.1.1.1.4.2.8 GetChildIPBlocksForBlock
The GetChildIPBlocksForBlock procedure is used to retrieve the IP address block information in the form of IPv4Block or IPv6Block. The type of the data returned being IPv4Block or IPv6Block is based on the simple table within the ADM_IPBlocksTable compound table against which the processing steps are performed.
The following are the input parameters to this procedure:
Param_blockId: This is a 64-bit signed integer that identifies the block for which the information is being retrieved.
Param_addressfamily: This is of type AddressFamily and it can be either InterNetwork or InterNetworkV6. The value InterNetwork is used to specify the processing to be done on the IPv4-specific simple tables for any compound table involved during the processing. The value InterNetworkV6 is used to specify the processing to be done on IPv6-specific simple tables for any compound table involved during the processing.
The following is the output parameter from this procedure.
Result_childBlocks: This is a collection of the address block information in the form of IPv4Block or IPv6Block corresponding to Param_blockId and Param_addressfamily specified in the input parameter. If Param_addressfamily is InterNetwork, the procedure returns collection of IPv4Block instances and if it is InterNetworkV6, the procedure returns a collection of IPv6Block instances.
The following are the processing steps involved:
Look up the ADM_IPBlocksTable for all the rows with the ParentBlockRecordId of value Param_blockId.
If the rows are not found, return NULL. Otherwise initialize Result_childBlocks to a collection of IPv4Block if Param_addressfamily is InterNetwork and IPv6Block if the Param_addressfamily is InterNetworkV6.
For each row that has been found, call GetIPBlockFromTable procedure of ADM_IPBlocksTable passing the following parameters:
RecordId is assigned to Param_blockId.
Param_addressfamily is assigned to Param_addressfamily.
Process the output result and add it to the collection Result_childBlocks.
Return Result_childBlocks as the output of the procedure.