Skip to content

Commit 29dd7ac

Browse files
benclaussen1SheffSixbenclaussen
authored
v1.7.3 (#43)
* Fixing Interface Type parameter (#42) @SheffSix * Fixing #41 * Update `deploy.ps1` to remove trailing whitespaces from psd1 * Increase version to 1.7.3 * Fix location of whitespace cleanup in `deploy.ps1` --------- Co-authored-by: SheffSix <jbeck1867@gmail.com> Co-authored-by: Ben Claussen <benclaussen@gmail.com>
1 parent 441b06e commit 29dd7ac

File tree

7 files changed

+93
-76
lines changed

7 files changed

+93
-76
lines changed

Functions/DCIM/Interfaces/Add-NetboxDCIMInterface.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ function Add-NetboxDCIMInterface {
1010
[Parameter(Mandatory = $true)]
1111
[string]$Name,
1212

13+
[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)]
14+
[string]$Type,
15+
1316
[bool]$Enabled,
1417

1518
[object]$Form_Factor,

Functions/DCIM/Interfaces/Get-NetboxDCIMInterface.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function Get-NetboxDCIMInterface {
2525

2626
[uint16]$Device_Id,
2727

28-
[uint16]$Type,
28+
[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)]
29+
[string]$Type,
2930

3031
[uint16]$LAG_Id,
3132

Functions/DCIM/Interfaces/Set-NetboxDCIMInterface.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ function Set-NetboxDCIMInterface {
1717

1818
[object]$Form_Factor,
1919

20+
[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)]
21+
[string]$Type,
22+
2023
[uint16]$MTU,
2124

2225
[string]$MAC_Address,

NetboxPS.psd1

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#
1+
#
22
# Module manifest for module 'NetboxPS'
33
#
44
# Generated by: Ben Claussen
55
#
6-
# Generated on: 2023-03-10
6+
# Generated on: 2023-03-13
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'NetboxPS.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.7.2'
15+
ModuleVersion = '1.7.3'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -69,39 +69,39 @@ CLRVersion = '2.0.50727'
6969
NestedModules = @()
7070

7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
73-
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
74-
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
75-
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
76-
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
77-
'Get-NetboxContact', 'Get-NetboxContactAssignment',
78-
'Get-NetboxContactRole', 'Get-NetboxContentType',
79-
'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
80-
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
81-
'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
82-
'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
83-
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
84-
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
85-
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
86-
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
87-
'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
88-
'Get-NetboxVirtualizationCluster',
89-
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
90-
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
91-
'New-NetboxContact', 'New-NetboxContactAssignment',
92-
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
93-
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
94-
'New-NetboxTenant', 'New-NetboxVirtualMachine',
95-
'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
96-
'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
97-
'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
98-
'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
99-
'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
100-
'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
101-
'Set-NetboxHostPort', 'Set-NetboxHostScheme',
102-
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
103-
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
104-
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
72+
FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
73+
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
74+
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
75+
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
76+
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
77+
'Get-NetboxContact', 'Get-NetboxContactAssignment',
78+
'Get-NetboxContactRole', 'Get-NetboxContentType',
79+
'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
80+
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
81+
'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
82+
'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
83+
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
84+
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
85+
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
86+
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
87+
'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
88+
'Get-NetboxVirtualizationCluster',
89+
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
90+
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
91+
'New-NetboxContact', 'New-NetboxContactAssignment',
92+
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
93+
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
94+
'New-NetboxTenant', 'New-NetboxVirtualMachine',
95+
'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
96+
'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
97+
'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
98+
'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
99+
'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
100+
'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
101+
'Set-NetboxHostPort', 'Set-NetboxHostScheme',
102+
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
103+
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
104+
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
105105
'Set-NetboxVirtualMachineInterface', 'Test-NetboxAPIConnected'
106106

107107
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.

NetboxPS/NetboxPS.psd1

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#
1+
#
22
# Module manifest for module 'NetboxPS'
33
#
44
# Generated by: Ben Claussen
55
#
6-
# Generated on: 2023-03-10
6+
# Generated on: 2023-03-13
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'NetboxPS.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.7.2'
15+
ModuleVersion = '1.7.3'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -69,39 +69,39 @@ CLRVersion = '2.0.50727'
6969
NestedModules = @()
7070

7171
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
73-
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
74-
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
75-
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
76-
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
77-
'Get-NetboxContact', 'Get-NetboxContactAssignment',
78-
'Get-NetboxContactRole', 'Get-NetboxContentType',
79-
'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
80-
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
81-
'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
82-
'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
83-
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
84-
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
85-
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
86-
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
87-
'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
88-
'Get-NetboxVirtualizationCluster',
89-
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
90-
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
91-
'New-NetboxContact', 'New-NetboxContactAssignment',
92-
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
93-
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
94-
'New-NetboxTenant', 'New-NetboxVirtualMachine',
95-
'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
96-
'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
97-
'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
98-
'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
99-
'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
100-
'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
101-
'Set-NetboxHostPort', 'Set-NetboxHostScheme',
102-
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
103-
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
104-
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
72+
FunctionsToExport = 'Add-NetboxDCIMInterface', 'Add-NetboxDCIMInterfaceConnection',
73+
'Add-NetboxVirtualMachineInterface', 'Clear-NetboxCredential',
74+
'Connect-NetboxAPI', 'Get-ModelDefinition', 'Get-NetboxAPIDefinition',
75+
'Get-NetboxCircuit', 'Get-NetboxCircuitProvider',
76+
'Get-NetboxCircuitTermination', 'Get-NetboxCircuitType',
77+
'Get-NetboxContact', 'Get-NetboxContactAssignment',
78+
'Get-NetboxContactRole', 'Get-NetboxContentType',
79+
'Get-NetboxCredential', 'Get-NetboxDCIMDevice',
80+
'Get-NetboxDCIMDeviceRole', 'Get-NetboxDCIMDeviceType',
81+
'Get-NetboxDCIMInterface', 'Get-NetboxDCIMInterfaceConnection',
82+
'Get-NetboxDCIMPlatform', 'Get-NetboxDCIMSite', 'Get-NetboxHostname',
83+
'Get-NetboxHostPort', 'Get-NetboxHostScheme',
84+
'Get-NetboxInvokeParams', 'Get-NetboxIPAMAddress',
85+
'Get-NetboxIPAMAggregate', 'Get-NetboxIPAMAvailableIP',
86+
'Get-NetboxIPAMPrefix', 'Get-NetboxIPAMRole', 'Get-NetboxIPAMVLAN',
87+
'Get-NetboxTenant', 'Get-NetboxTimeout', 'Get-NetboxVersion',
88+
'Get-NetboxVirtualizationCluster',
89+
'Get-NetboxVirtualizationClusterGroup', 'Get-NetboxVirtualMachine',
90+
'Get-NetboxVirtualMachineInterface', 'New-NetboxCircuit',
91+
'New-NetboxContact', 'New-NetboxContactAssignment',
92+
'New-NetboxContactRole', 'New-NetboxDCIMDevice', 'New-NetboxDCIMSite',
93+
'New-NetboxIPAMAddress', 'New-NetboxIPAMPrefix', 'New-NetboxIPAMVLAN',
94+
'New-NetboxTenant', 'New-NetboxVirtualMachine',
95+
'Remove-NetboxDCIMDevice', 'Remove-NetboxDCIMInterface',
96+
'Remove-NetboxDCIMInterfaceConnection', 'Remove-NetboxDCIMSite',
97+
'Remove-NetboxIPAMAddress', 'Remove-NetboxVirtualMachine',
98+
'Set-NetboxCipherSSL', 'Set-NetboxContact', 'Set-NetboxCredential',
99+
'Set-NetboxDCIMDevice', 'Set-NetboxDCIMInterface',
100+
'Set-NetboxDCIMInterfaceConnection', 'Set-NetboxHostName',
101+
'Set-NetboxHostPort', 'Set-NetboxHostScheme',
102+
'Set-NetboxInvokeParams', 'Set-NetboxIPAMAddress',
103+
'Set-NetboxIPAMPrefix', 'Set-NetboxTimeout',
104+
'Set-NetboxUnstrustedSSL', 'Set-NetboxVirtualMachine',
105105
'Set-NetboxVirtualMachineInterface', 'Test-NetboxAPIConnected'
106106

107107
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.

0 commit comments

Comments
 (0)