Skip to content

Commit

Permalink
Address(mac): Add throw also when Add Firewall Address MAC (before 7.…
Browse files Browse the repository at this point in the history
…0.0)
  • Loading branch information
alagoutte committed Feb 6, 2024
1 parent 9f3648f commit 6fbb184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PowerFGT/Public/cmdb/firewall/address.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ function Add-FGTFirewallAddress {
$address | add-member -name "country" -membertype NoteProperty -Value $country
}
"mac" {
if ($connection.version -lt "7.0.0") {
Throw "-mac is not supported with PowerFGT before FortiOS >= 7.0.0"
}
# MAC Address Array
$mac_array = @()
foreach ($s in $mac) {
Expand Down

0 comments on commit 6fbb184

Please sign in to comment.