New-OVLogicalSwitchGroup
Syntax
New-OVLogicalSwitchGroup
[-Name] <String>
[-SwitchType <HPEOneView.Networking.SwitchType>]
[-NumberOfSwitches <Int>]
[-ApplianceConnection <Object>]
[-Async]
[<CommonParameters>]
Description
The logical switch group is a template for creating logical switches. Logical switches are an aggregation of up to two physical top-of-rack switches. Once constructed from a logical switch group, a logical switch continues to be associated with its logical switch group. Any change in consistency between the logical switch group and its associated logical switches is monitored and made visible on the associated logical switch screen in HPE OneView. This Cmdlet will help create a Logical Switch Group resources. Use Get-OVSwitchType to identify which switch family and models are supported. Please refer to either Get-OVSwitchType values, or the HPE OneView Support Matrix for which specific models are supported. Minimum required privileges: Infrastructure administrator or Network administrator
Examples
Example 1
Get-OVSwitchType -Name "Cisco Nexus 56xx" | New-OVLogicalSwitchGroup -Name "My Logical Switch Group Policy 1" -NumberOfSwitches 2
Create a Logical Switch Group fro the "Cisco Nexus 5600" series, specifying 2 expected switches.
Parameters
-Name <String>
The Logical Switch Group resource Name.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-SwitchType <HPEOneView.Networking.SwitchType>
The Switch Type resource from Get-OVSwitchType.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-NumberOfSwitches <Int>
The maximum number of switches supported in the Logical Switch Group. Only 1 or 2 are allowed.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | 1 |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Async <SwitchParameter>
Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-ApplianceConnection <Object>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
Switch Type resource from Get-OVSwitchType.
Return Values
The async task resource object to monitor (if -Async was used) or results.
Collection of remove Logical Switch async task resources.