nextbox-ui-plugin icon indicating copy to clipboard operation
nextbox-ui-plugin copied to clipboard

Plugin broken in Netbox 3.3

Open dreng opened this issue 3 years ago • 1 comments

After hitting the search button you get an error:

<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword '_termination_a_device_id' into field. Choices are: _abs_length, color, created, custom_field_data, id, journal_entries, label, last_updated, length, length_unit, status, tagged_items, tags, tenant, tenant_id, terminations, type

Python version: 3.9.2 NetBox version: 3.3.0

dreng avatar Aug 30 '22 08:08 dreng

+1 same error: `<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword '_termination_a_device_id' into field. Choices are: _abs_length, color, created, custom_field_data, id, journal_entries, label, last_updated, length, length_unit, status, tagged_items, tags, tenant, tenant_id, terminations, type

Python version: 3.10.6 NetBox version: 3.3.5`

RR3US avatar Oct 11 '22 19:10 RR3US

also this error:

FieldError at /plugins/nextbox-ui/site_topology/

Cannot resolve keyword '_termination_a_device_id' into field. Choices are: _abs_length, color, created, custom_field_data, id, journal_entries, label, last_updated, length, length_unit, status, tagged_items, tags, tenant, tenant_id, terminations, type

Request Method: GET Request URL: https://sub.domain.tld/plugins/nextbox-ui/site_topology/?site_id=6 Django Version: 4.0.8 Exception Type: FieldError Exception Value: Cannot resolve keyword '_termination_a_device_id' into field. Choices are: _abs_length, color, created, custom_field_data, id, journal_entries, label, last_updated, length, length_unit, status, tagged_items, tags, tenant, tenant_id, terminations, type Exception Location: /opt/netbox/venv/lib/python3.8/site-packages/django/db/models/sql/query.py, line 1677, in names_to_path Python Executable: /opt/netbox/venv/bin/python3 Python Version: 3.8.10 Python Path: ['/opt/netbox/netbox', '/opt/netbox', '/opt/netbox/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/opt/netbox/venv/lib/python3.8/site-packages']

Python version: 3.8.10 NetBox version: 3.3.5

reiters-it avatar Oct 17 '22 20:10 reiters-it

I have the same issue on version 3.3.5. Version 3.3.0 changed some internal variables which broke this plugin.

Qwiko avatar Oct 21 '22 13:10 Qwiko

When will this be fixed, are they working on this?

BDNS-NETBOX avatar Oct 26 '22 09:10 BDNS-NETBOX

I have tried to solve some of the bugs with this plugin. Works fairly well with netbox version 3.3 and above. The display topology does not error out. There are still alot of small bugs with CSS styling and the Save Current View function. https://github.com/Qwiko/nextbox-ui-plugin

Qwiko avatar Oct 26 '22 13:10 Qwiko

Using @Qwiko patch it still errors on when there are power connections.

File "/opt/netbox/venv/lib/python3.10/site-packages/nextbox_ui_plugin/views.py", line 499, in get topology_dict, device_roles, multi_cable_connections, device_tags = get_topology(self.queryset) File "/opt/netbox/venv/lib/python3.10/site-packages/nextbox_ui_plugin/views.py", line 377, in get_topology if b_termination.device_id in device_ids: AttributeError: 'PowerFeed' object has no attribute 'device_id'

geniesis avatar Nov 01 '22 02:11 geniesis

@geniesis I now filtered out PowerFeed cabling and that should resolve the issue. A PowerFeed does not have a Device id and can't be displayed.

I have updated my fork with this fix

Qwiko avatar Nov 01 '22 13:11 Qwiko

As there is no reaction at all since two months, I suppose this project is not being maintained anymore. There are also other major bugs open that are even older. I have therefore switched to netbox-topology-views, which (in my optinion) became a better replacement in the meantime anyway.

dreng avatar Nov 01 '22 17:11 dreng

how to correctly remove this plugin? i switch to https://github.com/mattieserver/netbox-topology-views too.

mikesrus avatar Nov 09 '22 06:11 mikesrus

Hi everyone.

Sorry for not responding so much time. I was immigrating to another country and rebuilding by life. Hopefully I'll return to the plugin development and fix this compatibility issue soon.

iDebugAll avatar Dec 17 '22 19:12 iDebugAll

Hi everyone.

Sorry for not responding so much time. I was immigrating to another country and rebuilding by life. Hopefully I'll return to the plugin development and fix this compatibility issue soon.

эх.. а кому щас легко. Удачи на новом месте :)

mikesrus avatar Dec 17 '22 20:12 mikesrus

Hey. New plugin version v0.10.0 fixes compatibility issue with NetBox 3.3. It's already available here and on PyPI.

iDebugAll avatar Dec 18 '22 10:12 iDebugAll

It is compatible with fresh NetBox 3.4 as well.

iDebugAll avatar Dec 19 '22 16:12 iDebugAll