diff --git a/Functions/Setup/Connect-NetboxAPI.ps1 b/Functions/Setup/Connect-NetboxAPI.ps1 index bb36287..4e1e429 100644 --- a/Functions/Setup/Connect-NetboxAPI.ps1 +++ b/Functions/Setup/Connect-NetboxAPI.ps1 @@ -138,9 +138,9 @@ Write-Verbose "Checking Netbox version compatibility" $script:NetboxConfig.NetboxVersion = Get-NetboxVersion - if ([version]$script:NetboxConfig.NetboxVersion.'netbox-version' -lt 2.8) { + if ([version]$script:NetboxConfig.NetboxVersion.'netbox-version' -lt 4.0.1) { $Script:NetboxConfig.Connected = $false - throw "Netbox version is incompatible with this PS module. Requires >=2.8.*, found version $($script:NetboxConfig.NetboxVersion.'netbox-version')" + throw "Netbox version is incompatible with this PS module. Requires >=4.0, found version $($script:NetboxConfig.NetboxVersion.'netbox-version')" } else { Write-Verbose "Found compatible version [$($script:NetboxConfig.NetboxVersion.'netbox-version')]!" } @@ -151,4 +151,4 @@ $script:NetboxConfig.ObjectTypes = Get-NetboxObjectType -Limit 500 Write-Verbose "Connection process completed" -} \ No newline at end of file +} diff --git a/NetboxPS.psd1 b/NetboxPS.psd1 index ac2c422..22fc1f7 100644 --- a/NetboxPS.psd1 +++ b/NetboxPS.psd1 @@ -3,7 +3,7 @@ # # Generated by: Ben Claussen # -# Generated on: 31/08/2024 +# Generated on: 01/09/2024 # @{ diff --git a/NetboxPS/NetboxPS.psd1 b/NetboxPS/NetboxPS.psd1 index ac2c422..22fc1f7 100644 --- a/NetboxPS/NetboxPS.psd1 +++ b/NetboxPS/NetboxPS.psd1 @@ -3,7 +3,7 @@ # # Generated by: Ben Claussen # -# Generated on: 31/08/2024 +# Generated on: 01/09/2024 # @{ diff --git a/NetboxPS/NetboxPS.psm1 b/NetboxPS/NetboxPS.psm1 index e444b2c..f8e63e0 100644 --- a/NetboxPS/NetboxPS.psm1 +++ b/NetboxPS/NetboxPS.psm1 @@ -605,9 +605,9 @@ function Connect-NetboxAPI { Write-Verbose "Checking Netbox version compatibility" $script:NetboxConfig.NetboxVersion = Get-NetboxVersion - if ([version]$script:NetboxConfig.NetboxVersion.'netbox-version' -lt 2.8) { + if ([version]$script:NetboxConfig.NetboxVersion.'netbox-version' -lt 4.0.1) { $Script:NetboxConfig.Connected = $false - throw "Netbox version is incompatible with this PS module. Requires >=2.8.*, found version $($script:NetboxConfig.NetboxVersion.'netbox-version')" + throw "Netbox version is incompatible with this PS module. Requires >=4.0, found version $($script:NetboxConfig.NetboxVersion.'netbox-version')" } else { Write-Verbose "Found compatible version [$($script:NetboxConfig.NetboxVersion.'netbox-version')]!" }