def get_tenant(self, **kwargs):
        address_pool_name = kwargs.pop("address_pool_name")

        ap = self.get_address_pool(address_pool_name)

        ip = ap.get_address()
        if not ip:
            raise Exception(ap.name % "AddressPool '%s' has run out of addresses.")

        t = VRouterTenant(provider_service=self, **kwargs)
        t.public_ip = ip
        t.public_mac = self.ip_to_mac(ip)
        t.address_pool_id = ap.id
        t.save()

        return t

#VRouterService.setup_simple_attributes()
dataset/ETHPy150Open open-cloud/xos/xos/services/vrouter/models.py/VRouterService.get_tenant/swapped operands of `%`