Skip to content

Commit 340bdd8

Browse files
committed
VPNIPsec(Phase2): remove old static phase 2 parameter
1 parent 9784782 commit 340bdd8

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

Src/Private/Get-AbrFgtVPNIPsec.ps1

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -256,44 +256,6 @@ function Get-AbrFgtVPNIPsec {
256256

257257
}
258258

259-
foreach ($v2 in $vpn_ph2) {
260-
Section -Style Heading3 "Phase 2: $($v2.name) ($($v2.phase1name))" {
261-
BlankLine
262-
$OutObj = @()
263-
264-
$OutObj += [pscustomobject]@{
265-
"Name" = $v2.name
266-
"Phase 1 Name" = $v2.phase1name
267-
"Commnets" = $v2.comments
268-
"Proposal" = $v2.proposal -replace " ", ", "
269-
"DH Group" = $v2.dhgrp -replace " ", ", "
270-
"Replay" = $v2.replay
271-
"KeepAlive" = $v2.keepalive
272-
"Keylife Type" = $v2.'keylife-type'
273-
"Keylife Seconds" = $v2.keylifeseconds
274-
"Keylife Kbs" = $v2.keylifekbs
275-
'Source Address Type' = $v2.'src-addr-type'
276-
'Source Address Name' = $v2.'src-name'
277-
'Source Address Subnet' = $(if ($Options.UseCIDRNotation) { Convert-AbrFgtSubnetToCIDR -Input $v2.'src-subnet' } else { $v2.'src-subnet' })
278-
'Destination Address Type' = $v2.'dst-addr-type'
279-
'Destination Address Name' = $v2.'dst-name'
280-
'Destination Address Subnet' = $(if ($Options.UseCIDRNotation) { Convert-AbrFgtSubnetToCIDR -Input $v2.'dst-subnet' } else { $v2.'dst-subnet' })
281-
}
282-
283-
284-
$TableParams = @{
285-
Name = "VPN IPsec Phase 2: $($v2.name)"
286-
List = $true
287-
ColumnWidths = 50, 50
288-
}
289-
290-
if ($Report.ShowTableCaptions) {
291-
$TableParams['Caption'] = "- $($TableParams.Name)"
292-
}
293-
294-
$OutObj | Table @TableParams
295-
}
296-
}
297259
}
298260
}
299261

0 commit comments

Comments
 (0)