From cbefd1a8e7e152bd43ccc3a1d5d5b6f9f9f4ce07 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 6 Feb 2015 18:11:29 +0100 Subject: [PATCH] switchs2: on importe netsnmp dans la fonction --- gestion/gen_confs/switchs2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)