Address(IPAM): all integer are [int] (not uint16)

This commit is contained in:
Alexis La Goutte 2021-03-29 22:31:54 +02:00
parent 7a8bdff480
commit 71081fed7b
4 changed files with 11 additions and 11 deletions

View file

@ -46,10 +46,10 @@ function Get-NetboxIPAMAvailableIP {
[Parameter(Mandatory = $true,
ValueFromPipelineByPropertyName = $true)]
[Alias('Id')]
[uint16]$Prefix_ID,
[int]$Prefix_ID,
[Alias('NumberOfIPs')]
[uint16]$Limit,
[int]$Limit,
[switch]$Raw
)

View file

@ -74,17 +74,17 @@ function New-NetboxIPAMAddress {
[object]$Status = 'Active',
[uint16]$Tenant,
[int]$Tenant,
[uint16]$VRF,
[int]$VRF,
[object]$Role,
[uint16]$NAT_Inside,
[int]$NAT_Inside,
[hashtable]$Custom_Fields,
[uint16]$Interface,
[int]$Interface,
[string]$Description,

View file

@ -38,7 +38,7 @@ function Remove-NetboxIPAMAddress {
(
[Parameter(Mandatory = $true,
ValueFromPipelineByPropertyName = $true)]
[uint16[]]$Id,
[int[]]$Id,
[switch]$Force
)

View file

@ -19,19 +19,19 @@ function Set-NetboxIPAMAddress {
(
[Parameter(Mandatory = $true,
ValueFromPipelineByPropertyName = $true)]
[uint16[]]$Id,
[int[]]$Id,
[string]$Address,
[string]$Status,
[uint16]$Tenant,
[int]$Tenant,
[uint16]$VRF,
[int]$VRF,
[object]$Role,
[uint16]$NAT_Inside,
[int]$NAT_Inside,
[hashtable]$Custom_Fields,