3.5.4.8.1.56 IpamIPSubnetsDirectChildrenByBlockIdEnumerationParameters
The IpamIPSubnetsDirectChildrenByBlockIdEnumerationParameters processing is done when the EnumInputParameters contains data of type IpamIPSubnetsDirectChildrenByBlockIdEnumerationParameters. The ObjectType MUST be EnumerationObjectType.IPSubnet. This is used to enumerate all IP Subnets of the specified address family which are associated with the IP Blocks who are direct children of the specified parent IP Block.
The following steps identify the rows to be returned as a part of the enumeration:
Call GetChildIPBlocksForBlock of ADM_IPBlocksTable with Param_blockId as IpamIPSubnetsByBlockIdEnumerationParameters.ParentBlockRecordId and Param_AddressFamily as IpamIPSubnetsByBlockIdEnumerationParameters.AddressFamily.
Go through each object of Result_IPBlock and find the row in ADM_IPBlocksTable corresponding to its RecordId.
For each row found, call GetSubnetByNetworkIdAndAddressSpace from ADM_SubnetTable by passing NetworkId as Param_NetworkId, PrefixLength as Param_PrefixLength, and AddressSpaceRecordId as Param_AddressSpaceRecordId. Add the returned IPSubnet object into EnumOutputData.