switchs2: vlan adm untagged pour les serveurs
This commit is contained in:
parent
225ee9c248
commit
c6f4a0cec8
1 changed files with 6 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue