nav icon indicating copy to clipboard operation
nav copied to clipboard

PortAdmin should refuse to configure Juniper switches using SNMP

Open sigmunau opened this issue 6 years ago • 2 comments

TypeError: 'NoneType' object is not iterable
Traceback (most recent call last): 
File "/opt/venvs/nav/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) 
File "/opt/venvs/nav/local/lib/python2.7/site-packages/nav/web/portadmin/views.py", line 557, in render_trunk_edit interface) 
File "/opt/venvs/nav/local/lib/python2.7/site-packages/nav/portadmin/snmputils.py", line 425, in get_native_and_trunked_vlans bitvector = BitVector(octet_string) 
File "/opt/venvs/nav/local/lib/python2.7/site-packages/nav/bitvector.py", line 35, in __init__ self.vector = array.array("B", octetstring) 
TypeError: 'NoneType' object is not iterable 

sigmunau avatar Feb 27 '19 13:02 sigmunau

It seems this may happen on juniper switches only.

sigmunau avatar Feb 27 '19 13:02 sigmunau

Juniper does not actually support SNMP writes for switch configuration, so an implementation that prevents the user from doing this would be better - at least until we implement NETCONF support for Juniper.

lunkwill42 avatar Nov 29 '19 14:11 lunkwill42