Skip to content

Commit 08757f5

Browse files
committed
old release: add comment about try/catch
1 parent b1dfb73 commit 08757f5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Src/Private/Get-AbrFgtRoute.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Get-AbrFgtRoute {
3232
$MonitorRouterIPv4 = Get-FGTMonitorRouterIPv4
3333
$Statics = Get-FGTRouterStatic
3434
$PolicyBasedRouting = Get-FGTRouterPolicy
35-
#
35+
#old release (before 7.x) and some new hardware (50G, 90G ?) get error about BGP neighbors
3636
try {
3737
$BGPNeighbors = Get-FGTMonitorRouterBGPNeighbors
3838
$OSPFNeighbors = Get-FGTMonitorRouterOSPFNeighbors

Src/Private/Get-AbrFgtSDWAN.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ function Get-AbrFgtSDWAN {
2626

2727
process {
2828

29+
#Old release of FortiOS don't support System SDWAN (Before 6.4.x)
2930
try {
30-
$sdwan = Get-fgtSystemSDWAN
31+
$sdwan = Get-FGTSystemSDWAN
3132
}
3233
catch {
3334
Write-Warning "SD-WAN is not available before FortiOS 6.4.x"

Src/Private/Get-AbrFgtSystem.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ function Get-AbrFgtSystem {
627627

628628
# Fetch HA Configuration
629629
$haConfig = Get-FGTSystemHA
630+
#Old release of FortiOS (Before 6.2.x) don't support SystemHAPeer and HAChecksum
630631
try {
631632
$haPeers = Get-FGTMonitorSystemHAPeer
632633
$haChecksums = Get-FGTMonitorSystemHAChecksum

0 commit comments

Comments
 (0)