Set-VDUplinkLacpPolicy Command | Vmware PowerCLI Reference

Set-VDUplinkLacpPolicy

This cmdlet modifies the Link Aggregation Control Protocol policy for uplink ports at switch or uplink port group level.

Syntax

Set-VDUplinkLacpPolicy
-Policy < UplinkLacpPolicy[] >
[-Enabled < Boolean > ]
[-EnabledInherited < Boolean > ]
[-Mode < UplinkLacpMode > ]
[-ModeInherited < Boolean > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Policy UplinkLacpPolicy[] named
  • pipeline
Specifies the Link Aggregation Control Protocol policy that you want to configure.
optional Enabled Boolean named
Specifies whether the Link Aggregation Control Protocol is enabled for the corresponding uplink port group or vSphere distributed switch.
optional EnabledInherited Boolean named
Specifies whether the Enabled setting is inherited from a parent object, such as a vSphere distributed switch.
optional Mode UplinkLacpMode named
Specifies the mode of the Link Aggregation Control Protocol policy for the corresponding uplink port group or vSphere distributed switch. The value can be Active or Passive.
optional ModeInherited Boolean named
Specifies whether the Mode setting is inherited from a parent object, such as a vSphere distributed switch.

Output

VMware.VimAutomation.Vds.Types.V1.Policy.UplinkLacpPolicy

Examples

Example 1

Get-VDSwitch "MyVDSwitch" | Get-VDUplinkLacpPolicy | Set-VDUplinkLacpPolicy -Enabled $true -Mode Active

Retrieves a vSphere distributed switch named "MyVDSwitch" and updates its policy to enable the Link Aggregation Control Protocol, and sets the corresponding policy mode to active.

Example 2

Get-VDPortgroup "MyVDPortgroup" | Get-VDUplinkLacpPolicy | Set-VDUplinkLacpPolicy -ModeInherited $true

Retrieves a distributed port group named "MyVDPortgroup" and updates its Link Aggregation Control Protocol mode based on its parent object's setting values.

Related Commands

VDUplinkLacpPolicy

This cmdlet retrieves the Link Aggregation Control Protocol policy for uplink ports.

This cmdlet modifies the Link Aggregation Control Protocol policy for uplink ports.

VDUplinkTeamingPolicy

This cmdlet retrieves the uplink teaming policy for distributed ports.

This cmdlet modifies the uplink teaming policy for distributed ports.