|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Remove-NcNetPortVlan
NAME
Remove-NcNetPortVlan
SYNOPSIS
Delete a VLAN interface.
SYNTAX
Remove-NcNetPortVlan [-Node] <String> [-VlanName] <String> [-Controller <NcC
ontroller[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-NcNetPortVlan [-ParentInterface] <String> [-Node] <String> -VlanId <U
Int16[]> [-Controller <NcController[]>] [-WhatIf] [-Confirm] [<CommonParamet
ers>]
DESCRIPTION
Delete a VLAN interface. The changes are persistent across reboots.
PARAMETERS
-Node <String>
The node that owns the port or ifgrp.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VlanName <String>
Name of VLAN interface. The name must be of the format <parent-inteface
>-<vlanid>.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ParentInterface <String>
The name of the port or ifgrp to modify.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VlanId <UInt16[]>
The VLAN IDs to remove. Range: [1..4094]
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NOTES
Category: net
API: net-vlan-delete
Family: cluster
-------------- Example 1 --------------
C:\PS>Remove-NcNetPortVlan i0b-4 fas3070cluster01-02
Destroy VLAN 'iob-4' on node 'fas3070cluster01-02'.
-------------- Example 2 --------------
C:\PS>Remove-NcNetPortVlan e0c fas3070cluster01-02 -VlanId 1,2,3 -Confirm:$f
alse
Remove VLAN tags 1,2,3 from port 'e0c' on node 'fas3070cluster01-02'.
-------------- Example 3 --------------
C:\PS>Get-NcNetPortVlan -ParentInterface i0b | Remove-NcNetPortVlan -Confirm
:$false
Remove all VLAN tags from ifgrp 'i0b'.
RELATED LINKS
Get-NcNetPortVlan
New-NcNetPortVlan
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|