3.5.4.8.1.50 IpamIPSubnetByFilterEnumerationParameters

The IpamIPSubnetByFilterEnumerationParameters processing is done when the EnumInputParameters contains data of type IpamIPSubnetByFilterEnumerationParameters. The ObjectType MUST be EnumerationObjectType.IPSubnet. This is used to enumerate all IP subnets that belong to an address family and meet all the filter criteria in IpamIPSubnetByFilterEnumerationParameters.filterInfo. IpamIPSubnetByFilterEnumerationParameters.filterInfo is a collection of various filter types (specified by ipam:GetIPSubnetFilter) and their values.

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

  1. For each row in ADM_SubnetTable, call GetSubnetById from ADM_SubnetTable by passing the RecordId as Param_SubnetId and IpamIPSubnetByFilterEnumerationParameters.AddressFamily as Param_AddressFamily.

  2. Check if each object returned satisfies every subcriteria in IpamIPSubnetByFilterEnumerationParameters.FilterInfo, if so, add it to EnumOutputData.