Skip to content

Commit

Permalink
Merge pull request #391 from marcusgc/master
Browse files Browse the repository at this point in the history
fix typo for rack name identifier
  • Loading branch information
deivisonmarteleto authored Jun 20, 2024
2 parents 06a87a4 + 788f669 commit 49913bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion networkapi/ambiente/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ def nextAvailableCIDR(self, subnets, network, network_mask=None):
elif int(network_mask) == last_subnet.prefixlen:
subnet = last_subnet.next()
else:
subnet = NETADDR(str(last_subnet.next().ip) + "/" + network_mask)
subnet = NETADDR(str(last_subnet.next().ip) + "/" + str(network_mask))
if not subnet.ip == subnet.network:
subnet = subnet.next()

Expand Down
2 changes: 1 addition & 1 deletion networkapi/api_rack/rackenvironments.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def leaf_leaf_vlans_save(self):
log.debug("_create_lflf_vlans")

env_lf = models_env.Ambiente.objects.filter(dcroom=int(self.rack.dcroom.id),
grupo_l3__nome=str(self.rack.name),
grupo_l3__nome=str(self.rack.nome),
ambiente_logico__nome="LEAF-LEAF")
log.debug("Leaf-leaf environments: " + str(env_lf))

Expand Down
2 changes: 1 addition & 1 deletion networkapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def local_files(path):
NETWORKAPI_DATABASE_PORT = os.getenv('NETWORKAPI_DATABASE_PORT', '3306')
NETWORKAPI_DATABASE_OPTIONS = os.getenv(
'NETWORKAPI_DATABASE_OPTIONS',
'{"init_command": "SET storage_engine=INNODB"}')
'{"init_command": "SET default_storage_engine=INNODB"}')

# Configurações de banco de dados
DATABASES = {
Expand Down

0 comments on commit 49913bd

Please sign in to comment.