From b73bbcb8dc8ada7a9394de44f314ee96e0858fba Mon Sep 17 00:00:00 2001 From: Ben Claussen Date: Tue, 29 May 2018 10:41:57 -0400 Subject: [PATCH] Add pipeline support for Get-NetboxIPAMAvailableIP --- Functions/Helpers.ps1 | 3 --- Functions/IPAM/IPAM.ps1 | 11 ++++++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Functions/Helpers.ps1 b/Functions/Helpers.ps1 index 715c9ce..4a2e7df 100644 --- a/Functions/Helpers.ps1 +++ b/Functions/Helpers.ps1 @@ -423,6 +423,3 @@ public enum $EnumName - - - diff --git a/Functions/IPAM/IPAM.ps1 b/Functions/IPAM/IPAM.ps1 index 0beb3e5..0edcc90 100644 --- a/Functions/IPAM/IPAM.ps1 +++ b/Functions/IPAM/IPAM.ps1 @@ -232,12 +232,15 @@ function Get-NetboxIPAMAvailableIP { .PARAMETER Prefix_ID A description of the Prefix_ID parameter. - .PARAMETER NumberOfIPs - A description of the NumberOfIPs parameter. + .PARAMETER Limit + A description of the Limit parameter. .PARAMETER Raw A description of the Raw parameter. + .PARAMETER NumberOfIPs + A description of the NumberOfIPs parameter. + .EXAMPLE PS C:\> Get-NetboxIPAMAvaiableIP -Prefix_ID $value1 @@ -248,7 +251,9 @@ function Get-NetboxIPAMAvailableIP { [CmdletBinding()] param ( - [Parameter(Mandatory = $true)] + [Parameter(Mandatory = $true, + ValueFromPipelineByPropertyName = $true)] + [Alias('Id')] [uint16]$Prefix_ID, [Alias('NumberOfIPs')]