diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-18 01:48:38 +0100 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-01-18 01:48:38 +0100 |
commit | 5a55c1b82a26244fb8a2584fa35887d9637bd2e2 (patch) | |
tree | a8809b57e6139d480ed2a882b462d1daae2716a7 /snmp_users.py | |
parent | bcf8f6653e09d9b1072c6fbe87d03ae0257cba36 (diff) |
fixed logging bug,updated protocol
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)) |