Make NAV use PySNMPv2 on Ubuntu Hardy

Bug #264318 reported by Erlend Midttun
2
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Low
Morten Brekkevold

Bug Description

On Ubuntu Hardy, both python-pysnmp2 and python-pysnmp4 are possible options for an "import pysnmp".

The version used is separated with the use of the variable PYSNMP_API_VERSION which is set to the version desired.

The patch attached adds the setting of this variable to "v2" before the import and thus makes NAV use the correct version.

Revision history for this message
Erlend Midttun (erlendbm) wrote :
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

I will look at adapting this patch for series/3.4.x

Changed in nav:
assignee: nobody → mvold
importance: Undecided → Low
milestone: none → v3.4.3
status: New → In Progress
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

I've accepted the patch with modifications into series/3.4.x: http://metanav.uninett.no/hg/series/3.4.x/rev/7130e68945fc

The modification to arnold.py was unnecessary, because the pysnmp imports in it were unused. Instead, I've committed a separate changeset to series/3.4.x to remove those unused imports entirely.

Thanks for your contribution :-)

Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.