File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments