def filtre(addrInfo):
    for (typ, addrList) in addrInfo.iteritems():
        if (len(addrList) == 0):
            continue
        for addrDetails in addrList:
            if (len(addrDetails.get('addr', '').split('.')) != 4):
                continue
            if ((not addrDetails.get('addr').startswith('192.168')) and (addrDetails.get('addr') != '127.0.0.1') and (not addrDetails.get('addr').startswith('0'))):
                return addrDetails.get('addr')
def filtre(addrInfo):
    for (typ, addrList) in addrInfo.iteritems():
        if (len(addrList) == 0):
            continue
        for addrDetails in addrList:
            if (len(addrDetails.get('addr', ).split('.')) != 4):
                continue
            if ((not addrDetails.get('addr').startswith('192.168')) and (addrDetails.get('addr') != '127.0.0.1') and (not addrDetails.get('addr').startswith('0'))):
                return addrDetails.get('addr')