diff --git a/gestion/hptools.py b/gestion/hptools.py index 3be858db..5ceab8ff 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -382,7 +382,7 @@ class hpswitch : def nb_prises(self) : """ Retourne le nombre de prises du switch """ if self.__debug : self.__logDest.write("HP DEBUG : nb_prises()\n") - return int(self.get('IF-MIB::interfaces.ifNumber.0')) - 2 + return int(self.version().split()[4][2:4]) def version(self) : """ Retourne la version du firmware du switch """