Global Search generates exception when search string matches virtual circuit id #10699

Closed
opened 2025-12-29 21:34:57 +01:00 by adam · 1 comment
Owner

Originally created by @marcusyuri on GitHub (Jan 27, 2025).

Originally assigned to: @bctiemann on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.2

Python Version

3.10

Steps to Reproduce

  1. Create a Virtual Circuit Type (ex: Leased Line)
  2. Create a Provider (ex: Level 3)
  3. Create a Provider Network (Ex: Level 3 MPLS)
  4. Create a new Virtual Circuit and fill circuit id with some string (ex: 12345)

Image

  1. Use global search and find by circuit id:

Expected Behavior

The search returns with the virtual circuit object

Observed Behavior

An exception happens:

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

VirtualCircuit has no field named 'provider'

Python version: 3.10.14
NetBox version: 4.2.0
Plugins:
netbox_demo: 0.5.0

Originally created by @marcusyuri on GitHub (Jan 27, 2025). Originally assigned to: @bctiemann on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.2 ### Python Version 3.10 ### Steps to Reproduce 1. Create a Virtual Circuit Type (ex: Leased Line) 2. Create a Provider (ex: Level 3) 3. Create a Provider Network (Ex: Level 3 MPLS) 4. Create a new Virtual Circuit and fill circuit id with some string (ex: 12345) ![Image](https://github.com/user-attachments/assets/2c0a80bd-9ce5-40d6-b798-6b959a792fc1) 5. Use global search and find by circuit id: ### Expected Behavior The search returns with the virtual circuit object ### Observed Behavior An exception happens: <class 'django.core.exceptions.FieldDoesNotExist'> VirtualCircuit has no field named 'provider' Python version: 3.10.14 NetBox version: 4.2.0 Plugins: netbox_demo: 0.5.0
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:34:57 +01:00
adam closed this issue 2025-12-29 21:34:57 +01:00
Author
Owner

@bctiemann commented on GitHub (Jan 27, 2025):

This will probably be a similar fix to https://github.com/netbox-community/netbox/pull/18351

@bctiemann commented on GitHub (Jan 27, 2025): This will probably be a similar fix to https://github.com/netbox-community/netbox/pull/18351
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10699