Skip to content

Commit

Permalink
Merge branch 'luismartingarcia-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Apr 1, 2015
2 parents 5f8012c + db08ca5 commit 27294f8
Show file tree
Hide file tree
Showing 29 changed files with 895 additions and 893 deletions.
6 changes: 2 additions & 4 deletions acitoolkit/acicounters.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"""ACI Toolkit module for counter and stats objects
"""

from acibaseobject import BaseACIObject, BaseRelation

import json
import logging
import re
Expand Down Expand Up @@ -148,7 +146,7 @@ def _get_path(self, dn):
result[countName][granularity][period][attrName] = float(counterAttr[attrName])

else:
print 'Found unsupported counter', countName, granularity, period
print('Found unsupported counter ' + str(countName) + " " + str(granularity) + " " + str(period))

result[countName][granularity][period]['intervalEnd'] = counterAttr.get('repIntvEnd')
result[countName][granularity][period]['intervalStart'] = counterAttr.get('repIntvStart')
Expand Down Expand Up @@ -497,7 +495,7 @@ def _process_data(data) :
for attrName in ['dropBytesRate', 'dropBytesRateAvg', 'dropBytesRateMax', 'dropBytesRateMin']:
result[countName][granularity][period][attrName] = float(counterAttr[attrName])
else:
print 'Found unsupported counter', countName, granularity, period
print('Found unsupported counter ' + str(countName) + " " + str(granularity) + " " + str(period))
result[countName][granularity][period]['intervalEnd'] = counterAttr.get('repIntvEnd')
result[countName][granularity][period]['intervalStart'] = counterAttr.get('repIntvStart')

Expand Down

0 comments on commit 27294f8

Please sign in to comment.