mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 03:05:47 +00:00
Address(IPAM): Fix PSSA about Command accepts pipeline input but not defined a process block
This commit is contained in:
parent
354aeb66d3
commit
eea2eebc82
2 changed files with 25 additions and 21 deletions
|
|
@ -54,6 +54,7 @@ function Get-NetboxIPAMAvailableIP {
|
|||
[switch]$Raw
|
||||
)
|
||||
|
||||
process {
|
||||
$Segments = [System.Collections.ArrayList]::new(@('ipam', 'prefixes', $Prefix_ID, 'available-ips'))
|
||||
|
||||
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary $PSBoundParameters -SkipParameterByName 'prefix_id'
|
||||
|
|
@ -62,3 +63,4 @@ function Get-NetboxIPAMAvailableIP {
|
|||
|
||||
InvokeNetboxRequest -URI $uri -Raw:$Raw
|
||||
}
|
||||
}
|
||||
|
|
@ -90,6 +90,7 @@ function New-NetboxIPAMAddress {
|
|||
[switch]$Raw
|
||||
)
|
||||
|
||||
process {
|
||||
$Segments = [System.Collections.ArrayList]::new(@('ipam', 'ip-addresses'))
|
||||
$Method = 'POST'
|
||||
|
||||
|
|
@ -112,6 +113,7 @@ function New-NetboxIPAMAddress {
|
|||
InvokeNetboxRequest -URI $URI -Method $Method -Body $URIComponents.Parameters -Raw:$Raw
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue