diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index db644f75..3060bf17 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -120,7 +120,12 @@ class Port(object): def vlan_member(self, vlan): """Renvoie V_TAGGED, V_UNTAGGED ou V_NO suivant le ``vlan`` (str) demandé""" - if self.uplink or self.servers: + if self.servers: + if vlan == 'adm': + return V_UNTAGGED + else: + return V_NO + if self.uplink: # TODO retirer ce hack dégueux: tous les switchs devraient tout # tagguer, même le vlan adhérent if vlan == 'adherent':