def _AddrInside(self, addr, addresses):
    if addr is 'any': return True   # always true if we match for any addr
    if not addresses: return True   # always true if term has nothing to match
    for next in addresses:
      # ipaddr can incorrectly report ipv4 as contained with ipv6 addrs
      if type(addr) is type(next):
        if addr in next:
          return True
    return False
Check if address is matched in another address or group of addresses.
dataset/ETHPy150Open google/capirca/lib/aclcheck.py/AclCheck._AddrInside