Return netstat information for SunOS flavors

def _netstat_aix():
    '''
    Return netstat information for SunOS flavors
    '''
    ret = []
    ## AIX 6.1 - 7.2, appears to ignore addr_family field contents
    ## for addr_family in ('inet', 'inet6'):
    for addr_family in ('inet',):
        # Lookup connections
        cmd = 'netstat -n -a -f {0} | tail -n +3'.format(addr_family)
        out = __salt__['cmd.run'](cmd, python_shell=True)
        for line in out.splitlines():
            comps = line.split()
            if len(comps) < 5:
                continue

            proto_seen = None
            tcp_flag = True
            if 'tcp' == comps[0] or 'tcp4' == comps[0]:
                proto_seen = 'tcp'
            elif 'tcp6' == comps[0]:
                proto_seen = 'tcp6'
            elif 'udp' == comps[0] or 'udp4' == comps[0]:
                proto_seen = 'udp'
                tcp_flag = False
            elif 'udp6' == comps[0]:
                proto_seen = 'udp6'
                tcp_flag = False

            if tcp_flag:
                if len(comps) >= 6:
                    ret.append({
                        'proto': proto_seen,
                        'recv-q': comps[1],
                        'send-q': comps[2],
                        'local-address': comps[3],
                        'remote-address': comps[4],
                        'state': comps[5]})
            else:
                if len(comps) >= 5:
                    ret.append({
                        'proto': proto_seen,
                        'local-address': comps[3],
                        'remote-address': comps[4]})
    return ret