- Set DefaultParameterSetName = Query
This commit is contained in:
Ben Claussen 2023-02-24 10:28:16 -05:00
parent 6b8caf0bd7
commit 1fed2d27e6

View file

@ -1,6 +1,6 @@
 
function Get-NetboxIPAMVLAN { function Get-NetboxIPAMVLAN {
[CmdletBinding()] [CmdletBinding(DefaultParameterSetName = 'Query')]
param param
( (
[Parameter(ParameterSetName = 'Query', [Parameter(ParameterSetName = 'Query',
@ -62,10 +62,6 @@ function Get-NetboxIPAMVLAN {
[switch]$Raw [switch]$Raw
) )
# if ($null -ne $Status) {
# $PSBoundParameters.Status = ValidateIPAMChoice -ProvidedValue $Status -VLANStatus
# }
switch ($PSCmdlet.ParameterSetName) { switch ($PSCmdlet.ParameterSetName) {
'ById' { 'ById' {
foreach ($VLAN_ID in $Id) { foreach ($VLAN_ID in $Id) {