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