summaryrefslogtreecommitdiffstats
path: root/snmp_users.py
diff options
context:
space:
mode:
Diffstat (limited to 'snmp_users.py')
-rwxr-xr-xsnmp_users.py4
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))