Merge lp:~slimey/engage/bugfix into lp:engage

Proposed by Simon C
Status: Merged
Approved by: Simon C
Approved revision: no longer in the source branch.
Merged at revision: 7
Proposed branch: lp:~slimey/engage/bugfix
Merge into: lp:engage
Diff against target: 41 lines (+11/-2)
3 files modified
debian/changelog (+6/-0)
setup.py (+1/-1)
src/engage/util/oid.py (+4/-1)
To merge this branch: bzr merge lp:~slimey/engage/bugfix
Reviewer Review Type Date Requested Status
Simon C Approve
Review via email: mp+128300@code.launchpad.net

Commit message

Fix issue with lucid snmp libraries

Description of the change

Fix issue with lucid snmp libraries

To post a comment you must log in.
Revision history for this message
Simon C (slimey) :
review: Approve
lp:~slimey/engage/bugfix updated
7. By Simon C

Fix issue with lucid snmp libraries

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-02 12:19:57 +0000
3+++ debian/changelog 2012-10-05 17:47:25 +0000
4@@ -1,3 +1,9 @@
5+engage (0.6.4) lucid; urgency=low
6+
7+ * Fix bug with lucid version of python snmp package
8+
9+ -- Simon C <simonc@ensoft.co.uk> Fri, 05 Oct 2012 18:39:34 +0100
10+
11 engage (0.6.3) precise; urgency=low
12
13 * Bugfix for launchpad build and movie playing
14
15=== modified file 'setup.py'
16--- setup.py 2012-09-25 17:47:25 +0000
17+++ setup.py 2012-10-05 17:47:25 +0000
18@@ -7,7 +7,7 @@
19 from distutils.core import setup
20
21 setup(name='engage',
22- version="0.6.2",
23+ version="0.6.4",
24 description='EnGage: system/network statistics monitoring and Apple TV control',
25 url='http://open.ensoft.co.uk/EnGage',
26 packages=['engage', 'engage.collector', 'engage.media', 'engage.monitor',
27
28=== modified file 'src/engage/util/oid.py'
29--- src/engage/util/oid.py 2012-09-18 21:21:43 +0000
30+++ src/engage/util/oid.py 2012-10-05 17:47:25 +0000
31@@ -50,7 +50,10 @@
32 self.ifIndex2Name = {0: '??'}
33 for name in self._walk(mib_table):
34 ifName = name.val
35- ifIndex = int(name.tag.split('.')[-1])
36+ try:
37+ ifIndex = int(name.iid)
38+ except Exception:
39+ ifIndex = int(name.tag.split('.')[-1])
40 self.ifName2Index[ifName] = ifIndex
41 self.ifIndex2Name[ifIndex] = ifName
42

Subscribers

People subscribed via source and target branches

to all changes: