diff --git a/gestion/gen_confs/switchs2.py b/gestion/gen_confs/switchs2.py index 3cb95f7b..4966c1fb 100755 --- a/gestion/gen_confs/switchs2.py +++ b/gestion/gen_confs/switchs2.py @@ -32,7 +32,6 @@ from lc_ldap.shortcuts import lc_ldap_admin as make_ldap_conn import gestion.annuaires_pg as annuaire import gestion.config as config import lc_ldap.objets as ldap_classes -from gestion.hptools import snmp import gestion.config.encoding as enc GIGABIT_MODELS = ['J9021A', 'J9145A'] @@ -293,6 +292,7 @@ def get_port_dict(switch): def fill_port_infos(hostname, port_dict): """Rajoute des infos sur les ports d'un switch""" + from gestion.hptools import snmp conn = snmp(hostname, version='1', community='public') prise_vlan = conn.walk(MIB_PRISE_VLAN, bin_comp=True)