Skip to content

Commit

Permalink
Merge pull request #439 from globocom/develop
Browse files Browse the repository at this point in the history
fixed variable name and query filter to allocate vlans to a new rack
  • Loading branch information
renan-lopes-rodrigues authored Aug 9, 2024
2 parents 2b507b2 + 0a33751 commit 523c025
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion networkapi/api_rack/rackenvironments.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ def spines_environment_read(self):

def spine_leaf_vlans_save(self):
log.debug("_create_spnlfvlans")
fabric = self.rack.dcroom.name
rackname = self.rack.nome
grupoL3name = fabric+"_"+rackname

spn_lf_envs = models_env.Ambiente.objects.filter(dcroom=int(self.rack.dcroom.id),
grupo_l3__nome=str(self.rack.dcroom.name),
grupo_l3__nome=str(grupoL3name),
ambiente_logico__nome__in=["SPINE01LEAF",
"SPINE02LEAF",
"SPINE03LEAF",
Expand Down

0 comments on commit 523c025

Please sign in to comment.