Share via


3.5.4.8.1.51 IpamIPSubnetsByAddressCategoryEnumerationParameters

The IpamIPSubnetsByAddressCategoryEnumerationParameters processing is done when the EnumInputParameters contains data of type IpamIPSubnetsByAddressCategoryEnumerationParameters. The ObjectType MUST be EnumerationObjectType.IPSubnet. This is used to enumerate all IP subnets in the IPAM data store belonging to the specified address family and address category.

The following are the steps involved in identifying the rows to be returned as a part of the enumeration:

  1. Enumerate the rows of ADM_IPBlocksTable whose AddressCategory matches IpamIPSubnetsByAddressCategoryEnumerationParameters.AddressCategory and its IsSubnet is TRUE.

  2. For the rows enumerated above, call GetSubnetByNetworkIdAndAddressSpace from ADM_SubnetTable by passing the following parameters:

  3. NetworkId as Param_NetworkId.

  4. PrefixLength as Param_PrefixLength.

  5. AddressSpaceRecordId as Param_AddressSpaceRecordId

  6. Add the Result_IPSubnet to EnumOutputData.