Skip to content

Commit

Permalink
fixed variable name and query filter to allocate vlans to a new rack
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-lopes-rodrigues committed Aug 9, 2024
1 parent 5cc8fc4 commit 0a33751
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 0a33751

Please sign in to comment.