Tor Pretorius wrote, On 11-12-2006 15:45:
> I have add many Switch and GSW device
> but get error when I adding GW device
>
> Any idea ??
Yes.
> (NAV 3.1.1 run on Centos 4.4)
[...]
> File "/usr/local/nav/apache/webroot/editdb/initBox.py", line 161, in
> is_ascii
> s.encode("ascii")
>
> AttributeError: 'int' object has no attribute 'encode'
It appears that our bugfix for problems with hexstring serial numbers on
some Cisco devices introduced a new, similar bug. Some devices also
return integer values for serial numbers instead of strings - attempting
to encode an integer object as if it were a string will fail miserably,
as in your case.
I've just committed a fix for this to the repository (r3785). We're
expecting to release NAV 3.2 within a few weeks, so I don't think you
will see this in a bugfix release before that.
Several others have reported this problem, and a workaround has been
suggested: Use bulk import to insert the devices that cause this error
- the serial numbers are not retrieved and checked in this manner during
a bulk import.
--
mvh
Morten Brekkevold
UNINETT
_______________________________________________
nav-users mailing list
[email protected]
http://mailman.itea.ntnu.no/mailman/listinfo/nav-users