Arnold error on port quarantine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
High
|
Morten Brekkevold |
Bug Description
On NAV 3.6.0 trying to quarantine a port on a HP switch gives the following error:
URI: '/arnold/
Location: None
Directory: '/usr/share/
Filename: '/usr/share/
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'nav.web.
Traceback (most recent call last):
File "/usr/lib/
default=
File "/usr/lib/
result = _execute_
File "/usr/lib/
result = object(arg)
File "/var/lib/
req.
File "/var/lib/
fromvlan = changePortVlan(
File "/var/lib/
snmpset.
File "/var/lib/
(value_class, self.version))
ValueError: Unsigned32 not supported in SNMP version 1
---
Changed in nav: | |
status: | Fix Committed → Fix Released |
I'm unable to test this completely, since I have no write access to an HP switch, but the code confirms your problem.
Arnold never specifies which SNMP version to use when doing SNMP operations. Though parts of it seem to require v2c-only stuff, the default of the SNMP library is to use version 1 if nothing is specified. As confirmed outside the tracker, your problem is that the HP switch supports SNMP v2c, but Arnold still tries to use SNMP v1.
Arnold should be amended to actually use the SNMP version NAV has discovered that the switch supports.