Src/Private/Get-AbrOntapNetworkBdomain.ps1

function Get-AbrOntapNetworkBdomain {
    <#
    .SYNOPSIS
    Used by As Built Report to retrieve NetApp ONTAP Network Broadcast Domain information from the Cluster Management Network
    .DESCRIPTION

    .NOTES
        Version: 0.5.0
        Author: Jonathan Colon
        Twitter: @jcolonfzenpr
        Github: rebelinux
    .EXAMPLE

    .LINK

    #>

    [CmdletBinding()]
    param (
    )

    begin {
        Write-PscriboMessage "Collecting ONTAP Broadcast information."
    }

    process {
        $BDomain = Get-NcNetPortBroadcastDomain -Controller $Array
        $BDomainObj = @()
        if ($BDomain) {
            foreach ($Item in $BDomain) {
                $inObj = [ordered] @{
                    'Name' = $Item.BroadcastDomain
                    'IPSpace' = $Item.Ipspace
                    'Failover Groups' = $Item.FailoverGroups
                    'MTU' = $Item.Mtu
                    'Ports' = $Item.Ports
                }
                $BDomainObj += [pscustomobject]$inobj
            }

            $TableParams = @{
                Name = "Network Broadcast Domain Information - $($ClusterInfo.ClusterName)"
                List = $false
                ColumnWidths = 20, 20, 20, 10, 30
            }
            if ($Report.ShowTableCaptions) {
                $TableParams['Caption'] = "- $($TableParams.Name)"
            }
            $BDomainObj | Table @TableParams
        }
    }

    end {}

}