Creating a new (empty) team, Adding an adapter to a team, Removing an adapter from a team – Dell Intel PRO Family of Adapters User Manual

Page 46

Advertising
background image

The last description is returned when the current value for IANet_SettingEnum, IANet_SettingSlider or

IANet_SettingMultiSelection is not one of the allowable values.

The only attribute for a setting that the client can change is CurrentValue. The WMI Provider will ignore changes made to any

of the other values.

There are no supported methods on the setting class. To make changes to a setting modify the CurrentValue property, call

PutInstance.

Back to Top

Creating a New (Empty) Team

Creating a new team:

Requires Session Handle.

PreCheck is available.

Requires an Apply call before operation is executed.

To create a new team, create an instance of IANet_TeamOfAdapters (i.e., use IWbemServices::GetObject() to get a class

object for IANet_TeamOfAdapters and then use IWbemServices::SpawnInstance() to create an instance of this object).

Then, use IWbemClassObject::Put to set the TeamMode attribute in the instance to be the desired team type (e.g., AFT).

Finally, call IWbemServices::PutInstance() to create the team, passing the flag WBEM_FLAG_CREATE_ONLY.

The object path for the new team is stored in the IWbemCallResultObject that is passed back to you when the call has

completed. The method IWbemCallResult::GetResultString will get the new object path.

If this action fails, the client should check the IANet_ExtendedStatus to get the failure reasons.

The virtual IANet_EthernetAdapter and IANet_IPProtocolEndpoint classes for the team are not available until after the call to

Apply. The settings for the team can be accessed using the IANet_Configuration object associated with the new

IANet_TeamOfAdapters.

Back to Top

Adding an Adapter to a Team

Adding an adapter to a team:

Requires Session Handle.

PreCheck is available.

Requires an Apply call before operation is executed.

To add an adapter to a team, create an instance of IANet_TeamedMemberAdapter (i.e., use IWbemServices::GetObject()

to get a class object for IANet_TeamedMemberAdapter and then use IWbemServices::SpawnInstance() to create an

instance of this object).

The following attributes in the object must be set using IWbemClassObject::Put():

GroupComponent must be set to be the full object path of the IANet_TeamOfAdapters to which the adapter is to be

added.

PartComponent must be set to be the full object path of the IANet_EthernetAdapter that is to be added to the team.

You can also set the priority for the adapter in the team. Finally, call IWbemServices::PutInstance() to add the adapter to

the team, passing the flag WBEM_FLAG_CREATE_ONLY. If this action fails, check IANet_ExtendedStatus for the error code.

Back to Top

Removing an Adapter from a Team

Removing an adapter from a team:

Requires Session Handle.

46

Advertising