-Controller <NcController> A clustered Data ONTAP controller to receive this cmdlet, as embodied by an NcController object. This parameter is returned by the Connect-NcCo ntroller cmdlet. If not specified, the value in the global variable Cur rentNcController is used. In the latter case, if CurrentNcController co ntains a collection of NcController objects, this cmdlet is invoked on e ach controller in succession.
Required? false Position? named Default value Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? false
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.
-VlanId <UInt16> The VLAN IDs to add. 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".
Category: net API: net-vlan-create Family: cluster
Yes I have already referred that. But i found that more confusing. Example has not been given properly. So I put another question on community on that and got resolved. This was the issue with Split function which i was using. That was creating some issue. But Then i found some alternative to that.
Previously customer wanted to keep input as VlanName (e.g e0c-1111). So I had to split the VlanName to get the port(e0c) and Vlan ID(1111). But had an issue with splitting. It was not taking value as expected.
Instead of splitting i kept it simple as below and convinced the customer for keeping Port and Vlan ID seperate.