mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 09:52:29 +00:00
Update uint16 to uint64 where applicable for #49
This commit is contained in:
parent
46068dcc04
commit
58fbbeb0cd
31 changed files with 103 additions and 103 deletions
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
[string]$Termination_Type,
|
||||
|
||||
[uint16]$Termination_ID,
|
||||
[uint64]$Termination_ID,
|
||||
|
||||
[switch]$Raw
|
||||
)
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
[string]$Termination_A_Type,
|
||||
|
||||
[uint16]$Termination_A_ID,
|
||||
[uint64]$Termination_A_ID,
|
||||
|
||||
[string]$Termination_B_Type,
|
||||
|
||||
[UInt16]$Termination_B_ID,
|
||||
[uint64]$Termination_B_ID,
|
||||
|
||||
[string]$Type,
|
||||
|
||||
|
|
@ -26,15 +26,15 @@
|
|||
|
||||
[string]$Color,
|
||||
|
||||
[UInt16]$Device_ID,
|
||||
[uint64]$Device_ID,
|
||||
|
||||
[string]$Device,
|
||||
|
||||
[uint16]$Rack_Id,
|
||||
[uint64]$Rack_Id,
|
||||
|
||||
[string]$Rack,
|
||||
|
||||
[uint16]$Location_ID,
|
||||
[uint64]$Location_ID,
|
||||
|
||||
[string]$Location,
|
||||
|
||||
|
|
|
|||
|
|
@ -15,37 +15,37 @@ function Get-NetboxDCIMDevice {
|
|||
|
||||
[string]$Name,
|
||||
|
||||
[uint16]$Manufacturer_Id,
|
||||
[uint64]$Manufacturer_Id,
|
||||
|
||||
[string]$Manufacturer,
|
||||
|
||||
[uint16]$Device_Type_Id,
|
||||
[uint64]$Device_Type_Id,
|
||||
|
||||
[uint16]$Role_Id,
|
||||
[uint64]$Role_Id,
|
||||
|
||||
[string]$Role,
|
||||
|
||||
[uint16]$Tenant_Id,
|
||||
[uint64]$Tenant_Id,
|
||||
|
||||
[string]$Tenant,
|
||||
|
||||
[uint16]$Platform_Id,
|
||||
[uint64]$Platform_Id,
|
||||
|
||||
[string]$Platform,
|
||||
|
||||
[string]$Asset_Tag,
|
||||
|
||||
[uint16]$Site_Id,
|
||||
[uint64]$Site_Id,
|
||||
|
||||
[string]$Site,
|
||||
|
||||
[uint16]$Rack_Group_Id,
|
||||
[uint64]$Rack_Group_Id,
|
||||
|
||||
[uint16]$Rack_Id,
|
||||
[uint64]$Rack_Id,
|
||||
|
||||
[uint16]$Cluster_Id,
|
||||
[uint64]$Cluster_Id,
|
||||
|
||||
[uint16]$Model,
|
||||
[uint64]$Model,
|
||||
|
||||
[object]$Status,
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ function Get-NetboxDCIMDevice {
|
|||
|
||||
[bool]$Has_Primary_IP,
|
||||
|
||||
[uint16]$Virtual_Chassis_Id,
|
||||
[uint64]$Virtual_Chassis_Id,
|
||||
|
||||
[uint16]$Position,
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function Get-NetboxDCIMDeviceType {
|
|||
|
||||
[string]$Manufacturer,
|
||||
|
||||
[uint16]$Manufacturer_Id,
|
||||
[uint64]$Manufacturer_Id,
|
||||
|
||||
[string]$Model,
|
||||
|
||||
|
|
|
|||
|
|
@ -16,17 +16,17 @@ function New-NetboxDCIMDevice {
|
|||
[object]$Device_Type,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[object]$Status = 'Active',
|
||||
|
||||
[uint16]$Platform,
|
||||
[uint64]$Platform,
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[uint16]$Cluster,
|
||||
[uint64]$Cluster,
|
||||
|
||||
[uint16]$Rack,
|
||||
[uint64]$Rack,
|
||||
|
||||
[uint16]$Position,
|
||||
|
||||
|
|
@ -36,15 +36,15 @@ function New-NetboxDCIMDevice {
|
|||
|
||||
[string]$Asset_Tag,
|
||||
|
||||
[uint16]$Virtual_Chassis,
|
||||
[uint64]$Virtual_Chassis,
|
||||
|
||||
[uint16]$VC_Priority,
|
||||
[uint64]$VC_Priority,
|
||||
|
||||
[uint16]$VC_Position,
|
||||
[uint64]$VC_Position,
|
||||
|
||||
[uint16]$Primary_IP4,
|
||||
[uint64]$Primary_IP4,
|
||||
|
||||
[uint16]$Primary_IP6,
|
||||
[uint64]$Primary_IP6,
|
||||
|
||||
[string]$Comments,
|
||||
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@ function Set-NetboxDCIMDevice {
|
|||
|
||||
[object]$Device_Type,
|
||||
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[object]$Status,
|
||||
|
||||
[uint16]$Platform,
|
||||
[uint64]$Platform,
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[uint16]$Cluster,
|
||||
[uint64]$Cluster,
|
||||
|
||||
[uint16]$Rack,
|
||||
[uint64]$Rack,
|
||||
|
||||
[uint16]$Position,
|
||||
|
||||
|
|
@ -33,15 +33,15 @@ function Set-NetboxDCIMDevice {
|
|||
|
||||
[string]$Asset_Tag,
|
||||
|
||||
[uint16]$Virtual_Chassis,
|
||||
[uint64]$Virtual_Chassis,
|
||||
|
||||
[uint16]$VC_Priority,
|
||||
[uint64]$VC_Priority,
|
||||
|
||||
[uint16]$VC_Position,
|
||||
[uint64]$VC_Position,
|
||||
|
||||
[uint16]$Primary_IP4,
|
||||
[uint64]$Primary_IP4,
|
||||
|
||||
[uint16]$Primary_IP6,
|
||||
[uint64]$Primary_IP6,
|
||||
|
||||
[string]$Comments,
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
param
|
||||
(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[uint16]$Module,
|
||||
[uint64]$Module,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Name,
|
||||
|
|
@ -20,9 +20,9 @@
|
|||
[string]$Color,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Rear_Port,
|
||||
[uint64]$Rear_Port,
|
||||
|
||||
[uint16]$Rear_Port_Position,
|
||||
[uint64]$Rear_Port_Position,
|
||||
|
||||
[string]$Description,
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function Get-NetboxDCIMPlatform {
|
|||
|
||||
[string]$Slug,
|
||||
|
||||
[uint16]$Manufacturer_Id,
|
||||
[uint64]$Manufacturer_Id,
|
||||
|
||||
[string]$Manufacturer,
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function Add-NetboxDCIMInterface {
|
|||
param
|
||||
(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Name,
|
||||
|
|
|
|||
|
|
@ -30,10 +30,10 @@ function Add-NetboxDCIMInterfaceConnection {
|
|||
[object]$Connection_Status,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Interface_A,
|
||||
[uint64]$Interface_A,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Interface_B
|
||||
[uint64]$Interface_B
|
||||
)
|
||||
|
||||
# Verify if both Interfaces exist
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
[uint16]$Offset,
|
||||
|
||||
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[uint16]$Name,
|
||||
[uint64]$Name,
|
||||
|
||||
[object]$Form_Factor,
|
||||
|
||||
|
|
@ -22,12 +22,12 @@
|
|||
|
||||
[string]$Device,
|
||||
|
||||
[uint16]$Device_Id,
|
||||
[uint64]$Device_Id,
|
||||
|
||||
[ValidateSet('virtual', 'bridge', 'lag', '100base-tx', '1000base-t', '2.5gbase-t', '5gbase-t', '10gbase-t', '10gbase-cx4', '1000base-x-gbic', '1000base-x-sfp', '10gbase-x-sfpp', '10gbase-x-xfp', '10gbase-x-xenpak', '10gbase-x-x2', '25gbase-x-sfp28', '50gbase-x-sfp56', '40gbase-x-qsfpp', '50gbase-x-sfp28', '100gbase-x-cfp', '100gbase-x-cfp2', '200gbase-x-cfp2', '100gbase-x-cfp4', '100gbase-x-cpak', '100gbase-x-qsfp28', '200gbase-x-qsfp56', '400gbase-x-qsfpdd', '400gbase-x-osfp', '1000base-kx', '10gbase-kr', '10gbase-kx4', '25gbase-kr', '40gbase-kr4', '50gbase-kr', '100gbase-kp4', '100gbase-kr2', '100gbase-kr4', 'ieee802.11a', 'ieee802.11g', 'ieee802.11n', 'ieee802.11ac', 'ieee802.11ad', 'ieee802.11ax', 'ieee802.11ay', 'ieee802.15.1', 'other-wireless', 'gsm', 'cdma', 'lte', 'sonet-oc3', 'sonet-oc12', 'sonet-oc48', 'sonet-oc192', 'sonet-oc768', 'sonet-oc1920', 'sonet-oc3840', '1gfc-sfp', '2gfc-sfp', '4gfc-sfp', '8gfc-sfpp', '16gfc-sfpp', '32gfc-sfp28', '64gfc-qsfpp', '128gfc-qsfp28', 'infiniband-sdr', 'infiniband-ddr', 'infiniband-qdr', 'infiniband-fdr10', 'infiniband-fdr', 'infiniband-edr', 'infiniband-hdr', 'infiniband-ndr', 'infiniband-xdr', 't1', 'e1', 't3', 'e3', 'xdsl', 'docsis', 'gpon', 'xg-pon', 'xgs-pon', 'ng-pon2', 'epon', '10g-epon', 'cisco-stackwise', 'cisco-stackwise-plus', 'cisco-flexstack', 'cisco-flexstack-plus', 'cisco-stackwise-80', 'cisco-stackwise-160', 'cisco-stackwise-320', 'cisco-stackwise-480', 'juniper-vcp', 'extreme-summitstack', 'extreme-summitstack-128', 'extreme-summitstack-256', 'extreme-summitstack-512', 'other', IgnoreCase = $true)]
|
||||
[string]$Type,
|
||||
|
||||
[uint16]$LAG_Id,
|
||||
[uint64]$LAG_Id,
|
||||
|
||||
[string]$MAC_Address,
|
||||
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ function Get-NetboxDCIMInterfaceConnection {
|
|||
|
||||
[uint16]$Offset,
|
||||
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[object]$Connection_Status,
|
||||
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[switch]$Raw
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16[]]$Id,
|
||||
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
[bool]$MGMT_Only,
|
||||
|
||||
[uint16]$LAG,
|
||||
[uint64]$LAG,
|
||||
|
||||
[string]$Description,
|
||||
|
||||
|
|
|
|||
|
|
@ -39,9 +39,9 @@ function Set-NetboxDCIMInterfaceConnection {
|
|||
|
||||
[object]$Connection_Status,
|
||||
|
||||
[uint16]$Interface_A,
|
||||
[uint64]$Interface_A,
|
||||
|
||||
[uint16]$Interface_B,
|
||||
[uint64]$Interface_B,
|
||||
|
||||
[switch]$Force
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
param
|
||||
(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[uint16]$Module,
|
||||
[uint64]$Module,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$Name,
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@
|
|||
[uint16]$Offset,
|
||||
|
||||
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
[string]$Device,
|
||||
|
||||
[uint16]$Device_Id,
|
||||
[uint64]$Device_Id,
|
||||
|
||||
[string]$Type,
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ function Set-NetboxDCIMRearPort {
|
|||
ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16[]]$Id,
|
||||
|
||||
[uint16]$Device,
|
||||
[uint64]$Device,
|
||||
|
||||
[uint16]$Module,
|
||||
[uint64]$Module,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ function Get-NetboxTag {
|
|||
[uint16]$Offset,
|
||||
|
||||
[Parameter(ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function Set-NetboxIPAMAddress {
|
|||
[ValidateSet('dcim.interface', 'virtualization.vminterface', IgnoreCase = $true)]
|
||||
[string]$Assigned_Object_Type,
|
||||
|
||||
[uint16]$Assigned_Object_Id,
|
||||
[uint64]$Assigned_Object_Id,
|
||||
|
||||
[string]$Description,
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ function New-NetboxIPAMPrefix {
|
|||
|
||||
[object]$Status = 'Active',
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[object]$Role,
|
||||
|
||||
|
|
@ -18,11 +18,11 @@ function New-NetboxIPAMPrefix {
|
|||
|
||||
[string]$Description,
|
||||
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[uint16]$VRF,
|
||||
[uint64]$VRF,
|
||||
|
||||
[uint16]$VLAN,
|
||||
[uint64]$VLAN,
|
||||
|
||||
[hashtable]$Custom_Fields,
|
||||
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ function Set-NetboxIPAMPrefix {
|
|||
|
||||
[string]$Status,
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[uint16]$VRF,
|
||||
[uint64]$VRF,
|
||||
|
||||
[uint16]$VLAN,
|
||||
[uint64]$VLAN,
|
||||
|
||||
[object]$Role,
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
[object]$Status = 'Active',
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[object]$Role,
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ function Get-NetboxContact {
|
|||
[string]$Group,
|
||||
|
||||
[Parameter(ParameterSetName = 'Query')]
|
||||
[uint16]$GroupID,
|
||||
[uint64]$GroupID,
|
||||
|
||||
[Parameter(ParameterSetName = 'Query')]
|
||||
[uint16]$Limit,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ function Get-NetboxTenant {
|
|||
[string]$Group,
|
||||
|
||||
[Parameter(ParameterSetName = 'Query')]
|
||||
[uint16]$GroupID,
|
||||
[uint64]$GroupID,
|
||||
|
||||
[Parameter(ParameterSetName = 'Query')]
|
||||
[hashtable]$CustomFields,
|
||||
|
|
|
|||
|
|
@ -97,29 +97,29 @@ function Get-NetboxVirtualMachine {
|
|||
|
||||
[string]$Tenant,
|
||||
|
||||
[uint16]$Tenant_ID,
|
||||
[uint64]$Tenant_ID,
|
||||
|
||||
[string]$Platform,
|
||||
|
||||
[uint16]$Platform_ID,
|
||||
[uint64]$Platform_ID,
|
||||
|
||||
[string]$Cluster_Group,
|
||||
|
||||
[uint16]$Cluster_Group_Id,
|
||||
[uint64]$Cluster_Group_Id,
|
||||
|
||||
[string]$Cluster_Type,
|
||||
|
||||
[uint16]$Cluster_Type_Id,
|
||||
[uint64]$Cluster_Type_Id,
|
||||
|
||||
[uint16]$Cluster_Id,
|
||||
[uint64]$Cluster_Id,
|
||||
|
||||
[string]$Site,
|
||||
|
||||
[uint16]$Site_Id,
|
||||
[uint64]$Site_Id,
|
||||
|
||||
[string]$Role,
|
||||
|
||||
[uint16]$Role_Id,
|
||||
[uint64]$Role_Id,
|
||||
|
||||
[uint16]$Limit,
|
||||
|
||||
|
|
|
|||
|
|
@ -9,17 +9,17 @@ function New-NetboxVirtualMachine {
|
|||
[string]$Name,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Site,
|
||||
[uint64]$Site,
|
||||
|
||||
[uint16]$Cluster,
|
||||
[uint64]$Cluster,
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[object]$Status = 'Active',
|
||||
|
||||
[uint16]$Role,
|
||||
[uint64]$Role,
|
||||
|
||||
[uint16]$Platform,
|
||||
[uint64]$Platform,
|
||||
|
||||
[uint16]$vCPUs,
|
||||
|
||||
|
|
@ -27,9 +27,9 @@ function New-NetboxVirtualMachine {
|
|||
|
||||
[uint16]$Disk,
|
||||
|
||||
[uint16]$Primary_IP4,
|
||||
[uint64]$Primary_IP4,
|
||||
|
||||
[uint16]$Primary_IP6,
|
||||
[uint64]$Primary_IP6,
|
||||
|
||||
[hashtable]$Custom_Fields,
|
||||
|
||||
|
|
|
|||
|
|
@ -6,21 +6,21 @@ function Set-NetboxVirtualMachine {
|
|||
(
|
||||
[Parameter(Mandatory = $true,
|
||||
ValueFromPipelineByPropertyName = $true)]
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
[uint16]$Role,
|
||||
[uint64]$Role,
|
||||
|
||||
[uint16]$Cluster,
|
||||
[uint64]$Cluster,
|
||||
|
||||
[object]$Status,
|
||||
|
||||
[uint16]$Platform,
|
||||
[uint64]$Platform,
|
||||
|
||||
[uint16]$Primary_IP4,
|
||||
[uint64]$Primary_IP4,
|
||||
|
||||
[uint16]$Primary_IP6,
|
||||
[uint64]$Primary_IP6,
|
||||
|
||||
[byte]$VCPUs,
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ function Set-NetboxVirtualMachine {
|
|||
|
||||
[uint16]$Disk,
|
||||
|
||||
[uint16]$Tenant,
|
||||
[uint64]$Tenant,
|
||||
|
||||
[string]$Comments,
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function Add-NetboxVirtualMachineInterface {
|
|||
[string]$Name,
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[uint16]$Virtual_Machine,
|
||||
[uint64]$Virtual_Machine,
|
||||
|
||||
[boolean]$Enabled = $true,
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ function Get-NetboxVirtualMachineInterface {
|
|||
param
|
||||
(
|
||||
[Parameter(ValueFromPipeline = $true)]
|
||||
[uint16]$Id,
|
||||
[uint64]$Id,
|
||||
|
||||
[string]$Name,
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ function Get-NetboxVirtualMachineInterface {
|
|||
|
||||
[uint16]$MTU,
|
||||
|
||||
[uint16]$Virtual_Machine_Id,
|
||||
[uint64]$Virtual_Machine_Id,
|
||||
|
||||
[string]$Virtual_Machine,
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ function Set-NetboxVirtualMachineInterface {
|
|||
|
||||
[boolean]$Enabled,
|
||||
|
||||
[uint16]$Virtual_Machine,
|
||||
[uint64]$Virtual_Machine,
|
||||
|
||||
[switch]$Force
|
||||
)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ function Get-NetboxVirtualizationCluster {
|
|||
|
||||
[string]$Group,
|
||||
|
||||
[uint16]$Group_Id,
|
||||
[uint64]$Group_Id,
|
||||
|
||||
[string]$Type,
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ function Get-NetboxVirtualizationCluster {
|
|||
|
||||
[string]$Site,
|
||||
|
||||
[uint16]$Site_Id,
|
||||
[uint64]$Site_Id,
|
||||
|
||||
[uint16]$Limit,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue