annuaires_pg: retire switchs spéciaux en double
This commit is contained in:
parent
01911d4edf
commit
5c3a8ee252
1 changed files with 5 additions and 2 deletions
|
@ -290,12 +290,15 @@ uplink_prises={ 'a' :
|
|||
_SPECIAL_SWITCHES=['backbone.adm.crans.org',
|
||||
'multiprise-v6.adm.crans.org',
|
||||
'batk-0.crans.org',
|
||||
'batp-4.adm.crans.org',
|
||||
'minigiga.adm.crans.org',
|
||||
'batv-0.adm.crans.org',
|
||||
]
|
||||
_HIDDEN_SWITCHES=[
|
||||
'batp-4.adm.crans.org',
|
||||
'batv-0.adm.crans.org',
|
||||
]
|
||||
|
||||
def all_switchs(bat=None, hide=_SPECIAL_SWITCHES):
|
||||
def all_switchs(bat=None, hide=_SPECIAL_SWITCHES + _HIDDEN_SWITCHES):
|
||||
"""Retourne la liste des switchs pour un batiment.
|
||||
|
||||
Si bat est donné, seulement pour le bâtiment demandé, sinon pour
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue