def find_prefix(self, argp):
        """
        """
        arg_prefix = argp.split("/")[0]
        arg_pl = argp.split("/")[1]
        if self.n._is_ipv4(arg_prefix):
            m = re.match("([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)", arg_prefix)
            os1 = int(m.group(1))
            os2 = int(m.group(2))
            os3 = int(m.group(3))
            os4 = int(m.group(4))
            count = 2**(32-int(arg_pl))
            i = 0
            t0 = time.time()
            try:
                for o1 in xrange(os1, 255):
                    for o2 in xrange(os2, 255):
                        for o3 in xrange(os3, 255):
                            t2 = time.time()
                            for o4 in xrange(os4, 255):
                                prefix = "%s.%s.%s.%s" % (o1, o2, o3, o4)
                                self.n.list_prefix({ 'name': 'test-schema'}, { 'prefix': prefix })
                                i += 1
                                if i >= count:
                                    raise StopIteration()
                            t3 = time.time()
                            print o3, (t3-t2)/256
            except StopIteration:
                pass
            t1 = time.time()
            print count, "prefixes found in:", t1-t0


        elif self.n._is_ipv6(argp):
            print >> sys.stderr, "IPv6 is currently unsupported"
dataset/ETHPy150Open SpriteLink/NIPAP/tests/performance/speedtest.py/bonk.find_prefix/original