def get_address_pool(self, name):
        ap = AddressPool.objects.filter(name=name, service=self)
        if not ap:
            raise Exception("vRouter unable to find addresspool %s" % name)
        return ap[0]
dataset/ETHPy150Open open-cloud/xos/xos/services/vrouter/models.py/VRouterService.get_address_pool/original