3.1.1.1.16.2.3 GetVendorClassFromServer

This procedure can be used to retrieve a specific DhcpVendorClass in the form of either DhcpVendorClassV4 or DhcpVendorClassV6, based on whether the procedure is invoked against the IPv4-specific or IPv6-specific table, respectively.

It takes the following as input parameters.

Param_addressfamily: This is of type AddressFamily and it can be either Internet or InternetV6. The value Internet 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 InternetV6 is used to specify the processing to be done on IPv6-specific simple tables for any compound table involved during the processing.

Param_serverRecordId: The record identifier of the DHCP Server instance from which the vendor class information is to be retrieved.

Param_vendorClassRecordId: The record identifier of the vendor class instance that is being requested.

The following is the output of this procedure.

Result_vendorClass: This will be of type DhcpVendorClassV4 if the Param_addressfamily is Internet. Otherwise, if the Param_addressfamily is InternetV6, this will be of type DhcpVendorClassV6.

The following are the processing steps involved.

  1. Lookup the server entry in ADM_DHCPServersTable having RecordId equal to Param_serverRecordId.

  2. If the entry is not found, set Result_vendorClass to null and return.

  3. Lookup the VendorClasses of the server row for the user class with RecordId value being Param_vendorClassRecordId.

  4. If the entry is not found, set Result_vendorClass to null and return.

  5. If Param_addressfamily is Internet, initialize Result_vendorClass to DhcpVendorClassV4. If Param_addressfamily is InternetV6, initialize Result_vendorClass to DhcpVendorClassV6.

  6. Copy the vendor class details to Result_vendorClass.

  7. Return Result_vendorClass as the output parameter of the procedure.