Skip to content

Commit 8863800

Browse files
committed
No FCP Data Interface in Network Interfaces section #41
1 parent 75afb88 commit 8863800

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Src/Private/Get-AbrOntapNetworkMGMT.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,14 @@ function Get-AbrOntapNetworkMgmt {
153153
}
154154
try {
155155
Section -ExcludeFromTOC -Style Heading6 'Data Network Interfaces' {
156-
$ClusterData = Get-NcNetInterface -Controller $Array | Where-Object { $_.Role -eq 'data' -and $_.DataProtocols -ne 'fcp' -and $_.Vserver -notin $options.Exclude.Vserver }
156+
$ClusterData = Get-NcNetInterface -Controller $Array | Where-Object { $_.Role -eq 'data' -and $_.Vserver -notin $options.Exclude.Vserver }
157157
$ClusterObj = @()
158158
if ($ClusterData) {
159159
foreach ($Item in $ClusterData) {
160160
try {
161+
if ($Item.Wwpn) {
162+
$AddressData = $Item.Wwpn
163+
} else {$AddressData = $Item.Address}
161164
$inObj = [ordered] @{
162165
'Data Interface' = $Item.InterfaceName
163166
'Status' = Switch ($Item.OpStatus) {
@@ -166,7 +169,7 @@ function Get-AbrOntapNetworkMgmt {
166169
default { $Item.OpStatus.ToString().ToUpper() }
167170
}
168171
'Data Protocols' = [string]$Item.DataProtocols
169-
'Address' = $Item.Address
172+
'Address' = $AddressData
170173
'Vserver' = $Item.Vserver
171174
}
172175
$ClusterObj += [pscustomobject]$inobj

0 commit comments

Comments
 (0)