[Bug] netbox 4.0.11 and 4.1.0 error 500 while displaying the interfaces of a device #10184

Closed
opened 2025-12-29 21:27:55 +01:00 by adam · 12 comments
Owner

Originally created by @gurretp on GitHub (Sep 4, 2024).

Originally assigned to: @bctiemann on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.1.0

Python Version

3.11

Steps to Reproduce

  1. select a device with an interface
  2. click on the interface tab

Expected Behavior

show the interfaces of the device

Observed Behavior

error 500:

Internal Server Error: /dcim/devices/201/interfaces/
Traceback (most recent call last):
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/base.py", line 26, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 125, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 39, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/object_views.py", line 151, in get
    return render(request, self.get_template_name(), {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/shortcuts.py", line 25, in render
    content = loader.render_to_string(template_name, context, request, using=using)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 171, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 210, in render
    return template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 173, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render
    return nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/library.py", line 258, in render
    _dict = self.func(*resolved_args, **resolved_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/templatetags/buttons.py", line 195, in bulk_edit_button
    url = reverse(get_viewname(model, action))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 254, in get_viewname
    is_plugin = isinstance(model._meta.app_config, PluginConfig)
                           ^^^^^^^^^^^
AttributeError: 'str' object has no attribute '_meta'
Originally created by @gurretp on GitHub (Sep 4, 2024). Originally assigned to: @bctiemann on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.1.0 ### Python Version 3.11 ### Steps to Reproduce 1. select a device with an interface 2. click on the interface tab ### Expected Behavior show the interfaces of the device ### Observed Behavior error 500: ``` Internal Server Error: /dcim/devices/201/interfaces/ Traceback (most recent call last): File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 104, in view return self.dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/base.py", line 26, in dispatch return super().dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 125, in dispatch return super().dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 39, in dispatch return super().dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch return handler(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/netbox/views/generic/object_views.py", line 151, in get return render(request, self.get_template_name(), { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/shortcuts.py", line 25, in render content = loader.render_to_string(template_name, context, request, using=using) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader.py", line 62, in render_to_string return template.render(context, request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/backends/django.py", line 61, in render return self.template.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 171, in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 159, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render result = block.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render result = block.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 65, in render result = block.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/loader_tags.py", line 210, in render return template.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 173, in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/test/utils.py", line 111, in instrumented_test_render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render return nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render return nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/defaulttags.py", line 326, in render return nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in render return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 1000, in <listcomp> return SafeString("".join([node.render_annotated(context) for node in self])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/current/venv-py3/lib64/python3.11/site-packages/django/template/library.py", line 258, in render _dict = self.func(*resolved_args, **resolved_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/templatetags/buttons.py", line 195, in bulk_edit_button url = reverse(get_viewname(model, action)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/netbox/releases/netbox-4.1.0/netbox/utilities/views.py", line 254, in get_viewname is_plugin = isinstance(model._meta.app_config, PluginConfig) ^^^^^^^^^^^ AttributeError: 'str' object has no attribute '_meta' ```
adam added the type: bugstatus: acceptedseverity: mediumtopic: htmx navigation labels 2025-12-29 21:27:55 +01:00
adam closed this issue 2025-12-29 21:27:55 +01:00
Author
Owner

@bctiemann commented on GitHub (Sep 4, 2024):

I'm not able to reproduce this. Could you add some more details about the device and interface configuration that causes this?

@bctiemann commented on GitHub (Sep 4, 2024): I'm not able to reproduce this. Could you add some more details about the device and interface configuration that causes this?
Author
Owner

@gurretp commented on GitHub (Sep 4, 2024):

sure,

would this be enough for you to reproduce it ?

Device

GET /api/dcim/devices/201/
{
    "id": 201,
    "url": "https://xxxx/api/dcim/devices/201/",
    "display_url": "https://xxx/dcim/devices/201/",
    "display": "tiresp",
    "name": "tiresp",
    "device_type": {
        "id": 55,
        "url": "https://xxxx/api/dcim/device-types/55/",
        "display": "Color LaserJet M552",
        "manufacturer": {
            "id": 9,
            "url": "https://xxx/api/dcim/manufacturers/9/",
            "display": "HP",
            "name": "HP",
            "slug": "hp",
            "description": ""
        },
        "model": "Color LaserJet M552",
        "slug": "color-laserjet-m552",
        "description": ""
    },
    "role": {
        "id": 9,
        "url": "https://xxxx/api/dcim/device-roles/9/",
        "display": "Printer",
        "name": "Printer",
        "slug": "printer",
        "description": ""
    },
    "tenant": null,
    "platform": null,
    "serial": "JPBVJ5M0JL",
    "asset_tag": null,
    "site": {
        "id": 9,
        "url": "https://xxxx/api/dcim/sites/9/",
        "display": "Ticino",
        "name": "Ticino",
        "slug": "ti",
        "description": ""
    },
    "location": null,
    "rack": null,
    "position": null,
    "face": null,
    "latitude": null,
    "longitude": null,
    "parent_device": null,
    "status": {
        "value": "active",
        "label": "Actif"
    },
    "airflow": null,
    "primary_ip": {
        "id": 9752,
        "url": "https://xxx/api/ipam/ip-addresses/9752/",
        "display": "10.5.254.10/25",
        "family": {
            "value": 4,
            "label": "IPv4"
        },
        "address": "10.5.254.10/25",
        "description": ""
    },
    "primary_ip4": {
        "id": 9752,
        "url": "https://xxxx/api/ipam/ip-addresses/9752/",
        "display": "10.5.254.10/25",
        "family": {
            "value": 4,
            "label": "IPv4"
        },
        "address": "10.5.254.10/25",
        "description": ""
    },
    "primary_ip6": null,
    "oob_ip": null,
    "cluster": null,
    "virtual_chassis": null,
    "vc_position": null,
    "vc_priority": null,
    "description": "",
    "comments": "",
    "config_template": null,
    "config_context": {},
    "local_context_data": null,
    "tags": [],
    "custom_fields": {},
    "created": "2021-07-15T00:00:00Z",
    "last_updated": "2023-04-21T19:02:00.428448Z",
    "console_port_count": 0,
    "console_server_port_count": 0,
    "power_port_count": 0,
    "power_outlet_count": 0,
    "interface_count": 1,
    "front_port_count": 0,
    "rear_port_count": 0,
    "device_bay_count": 0,
    "module_bay_count": 0,
    "inventory_item_count": 0
}

IP:

GET /api/ipam/ip-addresses/9752/
{
    "id": 9752,
    "url": "https://xxx/api/ipam/ip-addresses/9752/",
    "display_url": "https://xxx/ipam/ip-addresses/9752/",
    "display": "10.5.254.10/25",
    "family": {
        "value": 4,
        "label": "IPv4"
    },
    "address": "10.5.254.10/25",
    "vrf": null,
    "tenant": null,
    "status": {
        "value": "active",
        "label": "Actif"
    },
    "role": null,
    "assigned_object_type": "dcim.interface",
    "assigned_object_id": 2136,
    "assigned_object": {
        "id": 2136,
        "url": "https://xxx/api/dcim/interfaces/2136/",
        "display": "ETH0",
        "device": {
            "id": 201,
            "url": "https://xxx/api/dcim/devices/201/",
            "display": "tiresp",
            "name": "tiresp",
            "description": ""
        },
        "name": "ETH0",
        "description": "",
        "cable": null,
        "_occupied": false
    },
    "nat_inside": null,
    "nat_outside": [],
    "dns_name": "",
    "description": "",
    "comments": "",
    "tags": [],
    "custom_fields": {},
    "created": "2023-04-21T19:02:00.404092Z",
    "last_updated": "2023-04-21T19:02:00.404119Z"
}

interface:

GET /api/dcim/interfaces/2136/
{
    "id": 2136,
    "url": "https://xxx/api/dcim/interfaces/2136/",
    "display_url": "https://xxx/dcim/interfaces/2136/",
    "display": "ETH0",
    "device": {
        "id": 201,
        "url": "https://xxx/api/dcim/devices/201/",
        "display": "tiresp",
        "name": "tiresp",
        "description": ""
    },
    "vdcs": [],
    "module": null,
    "name": "ETH0",
    "label": "",
    "type": {
        "value": "1000base-t",
        "label": "1000BASE-T (1GE)"
    },
    "enabled": true,
    "parent": null,
    "bridge": null,
    "lag": null,
    "mtu": 1500,
    "mac_address": "A0:8C:FD:56:22:68",
    "speed": null,
    "duplex": null,
    "wwn": null,
    "mgmt_only": false,
    "description": "",
    "mode": null,
    "rf_role": null,
    "rf_channel": null,
    "poe_mode": null,
    "poe_type": null,
    "rf_channel_frequency": null,
    "rf_channel_width": null,
    "tx_power": null,
    "untagged_vlan": null,
    "tagged_vlans": [],
    "mark_connected": false,
    "cable": null,
    "cable_end": "",
    "wireless_link": null,
    "link_peers": [],
    "link_peers_type": null,
    "wireless_lans": [],
    "vrf": null,
    "l2vpn_termination": null,
    "connected_endpoints": null,
    "connected_endpoints_type": null,
    "connected_endpoints_reachable": null,
    "tags": [],
    "custom_fields": {},
    "created": "2021-07-15T00:00:00Z",
    "last_updated": "2021-07-15T13:39:33.769002Z",
    "count_ipaddresses": 1,
    "count_fhrp_groups": 0,
    "_occupied": false
}
@gurretp commented on GitHub (Sep 4, 2024): sure, would this be enough for you to reproduce it ? Device <pre> GET /api/dcim/devices/201/ </pre> <pre> { "id": 201, "url": "https://xxxx/api/dcim/devices/201/", "display_url": "https://xxx/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "device_type": { "id": 55, "url": "https://xxxx/api/dcim/device-types/55/", "display": "Color LaserJet M552", "manufacturer": { "id": 9, "url": "https://xxx/api/dcim/manufacturers/9/", "display": "HP", "name": "HP", "slug": "hp", "description": "" }, "model": "Color LaserJet M552", "slug": "color-laserjet-m552", "description": "" }, "role": { "id": 9, "url": "https://xxxx/api/dcim/device-roles/9/", "display": "Printer", "name": "Printer", "slug": "printer", "description": "" }, "tenant": null, "platform": null, "serial": "JPBVJ5M0JL", "asset_tag": null, "site": { "id": 9, "url": "https://xxxx/api/dcim/sites/9/", "display": "Ticino", "name": "Ticino", "slug": "ti", "description": "" }, "location": null, "rack": null, "position": null, "face": null, "latitude": null, "longitude": null, "parent_device": null, "status": { "value": "active", "label": "Actif" }, "airflow": null, "primary_ip": { "id": 9752, "url": "https://xxx/api/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "description": "" }, "primary_ip4": { "id": 9752, "url": "https://xxxx/api/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "description": "" }, "primary_ip6": null, "oob_ip": null, "cluster": null, "virtual_chassis": null, "vc_position": null, "vc_priority": null, "description": "", "comments": "", "config_template": null, "config_context": {}, "local_context_data": null, "tags": [], "custom_fields": {}, "created": "2021-07-15T00:00:00Z", "last_updated": "2023-04-21T19:02:00.428448Z", "console_port_count": 0, "console_server_port_count": 0, "power_port_count": 0, "power_outlet_count": 0, "interface_count": 1, "front_port_count": 0, "rear_port_count": 0, "device_bay_count": 0, "module_bay_count": 0, "inventory_item_count": 0 } </pre> IP: <pre>GET /api/ipam/ip-addresses/9752/</pre> <pre>{ "id": 9752, "url": "https://xxx/api/ipam/ip-addresses/9752/", "display_url": "https://xxx/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "vrf": null, "tenant": null, "status": { "value": "active", "label": "Actif" }, "role": null, "assigned_object_type": "dcim.interface", "assigned_object_id": 2136, "assigned_object": { "id": 2136, "url": "https://xxx/api/dcim/interfaces/2136/", "display": "ETH0", "device": { "id": 201, "url": "https://xxx/api/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "description": "" }, "name": "ETH0", "description": "", "cable": null, "_occupied": false }, "nat_inside": null, "nat_outside": [], "dns_name": "", "description": "", "comments": "", "tags": [], "custom_fields": {}, "created": "2023-04-21T19:02:00.404092Z", "last_updated": "2023-04-21T19:02:00.404119Z" }</pre> interface: <pre>GET /api/dcim/interfaces/2136/</pre> <pre>{ "id": 2136, "url": "https://xxx/api/dcim/interfaces/2136/", "display_url": "https://xxx/dcim/interfaces/2136/", "display": "ETH0", "device": { "id": 201, "url": "https://xxx/api/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "description": "" }, "vdcs": [], "module": null, "name": "ETH0", "label": "", "type": { "value": "1000base-t", "label": "1000BASE-T (1GE)" }, "enabled": true, "parent": null, "bridge": null, "lag": null, "mtu": 1500, "mac_address": "A0:8C:FD:56:22:68", "speed": null, "duplex": null, "wwn": null, "mgmt_only": false, "description": "", "mode": null, "rf_role": null, "rf_channel": null, "poe_mode": null, "poe_type": null, "rf_channel_frequency": null, "rf_channel_width": null, "tx_power": null, "untagged_vlan": null, "tagged_vlans": [], "mark_connected": false, "cable": null, "cable_end": "", "wireless_link": null, "link_peers": [], "link_peers_type": null, "wireless_lans": [], "vrf": null, "l2vpn_termination": null, "connected_endpoints": null, "connected_endpoints_type": null, "connected_endpoints_reachable": null, "tags": [], "custom_fields": {}, "created": "2021-07-15T00:00:00Z", "last_updated": "2021-07-15T13:39:33.769002Z", "count_ipaddresses": 1, "count_fhrp_groups": 0, "_occupied": false }</pre>
Author
Owner

@arthanson commented on GitHub (Sep 4, 2024):

@gurretp I'm not able to reproduce this either. Can you please check the reproduction steps or see if there is something specific about your data.

@arthanson commented on GitHub (Sep 4, 2024): @gurretp I'm not able to reproduce this either. Can you please check the reproduction steps or see if there is something specific about your data.
Author
Owner

@goebelmeier commented on GitHub (Sep 4, 2024):

I am able to reproduce this. On 4.0.11 and on 4.1.0 as well.

@goebelmeier commented on GitHub (Sep 4, 2024): I am able to reproduce this. On 4.0.11 and on 4.1.0 as well.
Author
Owner

@bctiemann commented on GitHub (Sep 4, 2024):

@goebelmeier could you and @gurretp see if you can determine between you what is particular about your setups that causes this?

@bctiemann commented on GitHub (Sep 4, 2024): @goebelmeier could you and @gurretp see if you can determine between you what is particular about your setups that causes this?
Author
Owner

@bctiemann commented on GitHub (Sep 4, 2024):

Just a hunch, but I see this error on some other HTMX-related issues:
https://github.com/netbox-community/netbox/issues/17313

AttributeError: 'str' object has no attribute '_meta'

@gurretp @goebelmeier do you have HTMX enabled, and does turning that off affect this?

@bctiemann commented on GitHub (Sep 4, 2024): Just a hunch, but I see this error on some other HTMX-related issues: https://github.com/netbox-community/netbox/issues/17313 `AttributeError: 'str' object has no attribute '_meta'` @gurretp @goebelmeier do you have HTMX enabled, and does turning that off affect this?
Author
Owner

@goebelmeier commented on GitHub (Sep 5, 2024):

@bctiemann i can confirm it is happening when HTMX is enabled. Disabling HTMX fixes the issue

@goebelmeier commented on GitHub (Sep 5, 2024): @bctiemann i can confirm it is happening when HTMX is enabled. Disabling HTMX fixes the issue
Author
Owner

@gurretp commented on GitHub (Sep 5, 2024):

**@bctiemann ** Same here, disabling htmx fixes the issue

@gurretp commented on GitHub (Sep 5, 2024): **@bctiemann ** Same here, disabling htmx fixes the issue
Author
Owner

@github-actions[bot] commented on GitHub (Sep 14, 2024):

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

@github-actions[bot] commented on GitHub (Sep 14, 2024): This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 21, 2024):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@github-actions[bot] commented on GitHub (Sep 21, 2024): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Author
Owner

@jeremystretch commented on GitHub (Sep 24, 2024):

This was closed mistakenly. (The status label needs to be removed when an issue is assigned.)

@jeremystretch commented on GitHub (Sep 24, 2024): This was closed mistakenly. (The status label needs to be removed when an issue is assigned.)
Author
Owner

@candlerb commented on GitHub (Sep 26, 2024):

Possibly blocked by #17571

@candlerb commented on GitHub (Sep 26, 2024): Possibly blocked by #17571
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10184