@classmethod
    def get_unique_databaseinfra_name(cls, base_name):
        i = 0
        name = base_name
        while DatabaseInfra.objects.filter(name=name).exists():
            i += 1
            name = "%s-%d" % (base_name, i)
        LOG.info("databaseinfra unique name to be returned: %s" % name)
        return name
try diferent names if first exists, like NAME-1, NAME-2, ...
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/physical/models.py/DatabaseInfra.get_unique_databaseinfra_name