3.1.1.1.33.2.2 GetAddressSpaceByName

The GetAddressSpaceByName procedure can be used to retrieve an AddressSpace that has the specified Name and AddressSpaceType.

The following are the input parameters to this procedure:

Param_AddressSpaceName: Of type string that represents the name of the AddressSpace which needs to be retrieved.

Param_AddressSpaceType: Of type IPAddressSpaceType that specifies the type of the AddressSpace which needs to be retrieved.

The following is the output parameter from this procedure.

Result_AddressSpace: Of type AddressSpace.

The following steps are the processing done by this procedure against the data store:

  1. Look-up the row in the ADM_AddressSpaceTable with Name equal to Param_AddressSpaceName and AddressSpaceType same as Param_AddressSpaceType. If the row is not present, set Result_AddressSpace to NULL and return.

  2. If the row is present, then call GetAddressSpaceById procedure of ADM_AddressSpaceTable with Param_AddressSpaceId set to RecordId of the row.

  3. Return the Result_AddressSpace from the procedure.