diff options
Diffstat (limited to 'snmp_users.py')
-rwxr-xr-x | snmp_users.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snmp_users.py b/snmp_users.py index 6eb5c33c..8e2fb05d 100755 --- a/snmp_users.py +++ b/snmp_users.py @@ -45,11 +45,11 @@ class snmp_users: if mac in self.mac_list.keys(): log.info( "%s already assigned for ip %s (new IP %s) " % ( mac ,self.mac_list[mac], ip)) - self.mac_list[mac]['counter'] +=1 + self.mac_list[mac].append ( ip) continue else: log.debug("%s => %s" % (mac,ip)) - self.mac_list[mac] = { 'ip' : ip, 'counter' : 1} + self.mac_list[mac] = [ ip ] else: log.warning("Verification failed %s => %s" % (mac,ip)) |