@@ -106,8 +106,8 @@ function Get-AbrFgtVPNIPsec {
106106 if ($properties.typeNameOfValue -eq " System.Object[]" ) {
107107 $children = $vpn_ph1_schema .$name.children.PSObject.properties.name
108108 # Check if there is a value
109- if ($v1 .$name ) {
110- $value = $v1 .$name .$children -join " , "
109+ if ($v1 .$name ) {
110+ $value = $v1 .$name .$children -join " , "
111111 }
112112 }
113113 # found the default value
@@ -118,7 +118,7 @@ function Get-AbrFgtVPNIPsec {
118118 }
119119
120120 # Format value (add comma) and default for specific parameters (dhgrp, proposal, signature-hash-alg)
121- if ($name -eq " dhgrp" -or $name -eq " proposal" -or $name -eq " signature-hash-alg" ) {
121+ if ($name -eq " dhgrp" -or $name -eq " proposal" -or $name -eq " signature-hash-alg" ) {
122122 $value = $value -replace " " , " , "
123123 $default = $default -replace " " , " , "
124124 }
@@ -163,7 +163,7 @@ function Get-AbrFgtVPNIPsec {
163163 " subnet" {
164164 $src = $ (if ($Options.UseCIDRNotation ) { Convert-AbrFgtSubnetToCIDR - Input $v2 .' src-subnet' } else { $v2 .' src-subnet' -replace " " , " /" })
165165 }
166- Default {}
166+ default {}
167167 }
168168 switch ($v2 .' dst-addr-type' ) {
169169 " name" {
@@ -172,7 +172,7 @@ function Get-AbrFgtVPNIPsec {
172172 " subnet" {
173173 $dst = $ (if ($Options.UseCIDRNotation ) { Convert-AbrFgtSubnetToCIDR - Input $v2 .' dst-subnet' } else { $v2 .' dst-subnet' -replace " " , " /" })
174174 }
175- Default {}
175+ default {}
176176 }
177177 $OutObj += [pscustomobject ]@ {
178178 " Name" = $v2.name
@@ -216,8 +216,8 @@ function Get-AbrFgtVPNIPsec {
216216 if ($properties.typeNameOfValue -eq " System.Object[]" ) {
217217 $children = $vpn_ph2_schema .$name.children.PSObject.properties.name
218218 # Check if there is a value
219- if ($v2 .$name ) {
220- $value = $v2 .$name .$children -join " , "
219+ if ($v2 .$name ) {
220+ $value = $v2 .$name .$children -join " , "
221221 }
222222 }
223223 # found the default value
@@ -228,7 +228,7 @@ function Get-AbrFgtVPNIPsec {
228228 }
229229
230230 # Format value (add comma) and default for specific parameters (dhgrp, proposal))
231- if ($name -eq " dhgrp" -or $name -eq " proposal" ) {
231+ if ($name -eq " dhgrp" -or $name -eq " proposal" ) {
232232 $value = $value -replace " " , " , "
233233 $default = $default -replace " " , " , "
234234 }
0 commit comments