Skip to content

Commit d96b012

Browse files
committed
Fix IFGRP detection
1 parent 353ae5d commit d96b012

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,18 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
221221
}
222222
}
223223
}
224-
Section -Style Heading3 'Network Link Aggregation Group' {
225-
Paragraph "The following section provides per Node IFGRP Aggregated Ports on $($ClusterInfo.ClusterName)."
226-
BlankLine
227-
$Nodes = Get-NcNode -Controller $Array
228-
foreach ($Node in $Nodes) {
229-
if (Get-NcNetPortIfgrp -Node $Node -Controller $Array) {
230-
Section -Style Heading4 "$Node IFGRP" {
231-
Paragraph "The following section provides per Node IFGRP Aggregated Ports on $($Node)."
232-
BlankLine
233-
Get-AbrOntapNetworkIfgrp -Node $Node
224+
if (Get-NcNetPortIfgrp -Controller $Array) {
225+
Section -Style Heading3 'Network Link Aggregation Group' {
226+
Paragraph "The following section provides per Node IFGRP Aggregated Ports on $($ClusterInfo.ClusterName)."
227+
BlankLine
228+
$Nodes = Get-NcNode -Controller $Array
229+
foreach ($Node in $Nodes) {
230+
if (Get-NcNetPortIfgrp -Node $Node -Controller $Array) {
231+
Section -Style Heading4 "$Node IFGRP" {
232+
Paragraph "The following section provides per Node IFGRP Aggregated Ports on $($Node)."
233+
BlankLine
234+
Get-AbrOntapNetworkIfgrp -Node $Node
235+
}
234236
}
235237
}
236238
}

0 commit comments

Comments
 (0)