Commit cbefd1a8 authored by Daniel Stan's avatar Daniel Stan

switchs2: on importe netsnmp dans la fonction

parent 22725efd
......@@ -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)
......
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