Commit 9d080828 authored by Hamza Dely's avatar Hamza Dely

Ajout des 2530 dans la configuration des switches

parent a10cec5e
......@@ -2,13 +2,18 @@
# Mapping des versions de switchs <-> firmware à jour
hp_procurve_map = {
"J4899" : ("H.10.119", "HP 2626"),
"J4900" : ("H.10.119", "HP 2650"),
"J9626" : ("RA.16.03.0003", "HP 2620"),
"J9623" : ("RA.16.03.0003", "HP 2620"),
"J9145" : ("W.15.14.0014", "HP 2910 al"),
"J9085" : ("R.11.119", "HP 2610"),
"J9088" : ("R.11.119", "HP 2610"),
"J9021" : ("N.11.75", "HP 2810")}
"J9777" : ("YA.16.03.0003", "HP 2530"),
"J4899" : ("H.10.119", "HP 2626"),
"J4900" : ("H.10.119", "HP 2650"),
"J9626" : ("RA.16.03.0003", "HP 2620"),
"J9623" : ("RA.16.03.0003", "HP 2620"),
"J9145" : ("W.15.14.0014", "HP 2910 al"),
"J9085" : ("R.11.119", "HP 2610"),
"J9088" : ("R.11.119", "HP 2610"),
"J9021" : ("N.11.75", "HP 2810"),
}
all_models = ["HP 2626", "HP 2650", "HP 2620", "HP 2910 al", "HP 2610", "HP 2810"]
all_models = [
"HP 2530", "HP 2626", "HP 2650", "HP 2620",
"HP 2910 al", "HP 2610", "HP 2810",
]
......@@ -510,7 +510,7 @@ def conf_switch(hostname):
try:
data['config_header'] = get_header(hostname)
except:
print(u"Assurez-vous que le switch est bien connecté au réseau pour générer automatiquement son header...")
print("Assurez-vous que le switch est bien connecté au réseau pour générer automatiquement son header...")
for com in switch['info']:
if com.value.startswith(';'):
data['config_header'] = com.value.encode('utf-8')
......@@ -558,8 +558,8 @@ def conf_switch(hostname):
else:
data['ra_filter'] = False
# La syntaxe sntp change depuis 2016 sur 2620 et 2910
if "J9626" in imodel or "J9623" in imodel or "J9145" in imodel:
# La syntaxe sntp change depuis 2016 sur 2530, 2620 et 2910
if "J9626" in imodel or "J9623" in imodel or "J9145" in imodel or "J9777" in imodel:
data['sntp_new'] = True
else:
data['sntp_new'] = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment