summaryrefslogtreecommitdiffstats
path: root/snmp_users.py
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-01-18 01:48:38 +0100
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-01-18 01:48:38 +0100
commit5a55c1b82a26244fb8a2584fa35887d9637bd2e2 (patch)
treea8809b57e6139d480ed2a882b462d1daae2716a7 /snmp_users.py
parentbcf8f6653e09d9b1072c6fbe87d03ae0257cba36 (diff)
fixed logging bug,updated protocol
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))