diff --git a/networkapi/api_rack/rackenvironments.py b/networkapi/api_rack/rackenvironments.py index 4582993b..598352ed 100644 --- a/networkapi/api_rack/rackenvironments.py +++ b/networkapi/api_rack/rackenvironments.py @@ -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",