Prefix auto-loads VRF field on creation #6743

Closed
opened 2025-12-29 19:44:54 +01:00 by adam · 2 comments
Owner

Originally created by @hagbarddenstore on GitHub (Jul 29, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.7

Python version

3.10

Steps to Reproduce

  1. Run NetBox in debug mode
  2. Create two or more Prefixes
  3. Open the Prefixes list view
  4. Observe the SQL queries in the debug toolbar, each prefix loads it's VRF

Expected Behavior

Instantiating a Prefix should not load the VRF

Observed Behavior

Instantiating a Prefix loads its VRF automatically

Originally created by @hagbarddenstore on GitHub (Jul 29, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.7 ### Python version 3.10 ### Steps to Reproduce 1. Run NetBox in debug mode 2. Create two or more Prefixes 3. Open the Prefixes list view 4. Observe the SQL queries in the debug toolbar, each prefix loads it's VRF ### Expected Behavior Instantiating a Prefix should not load the VRF ### Observed Behavior Instantiating a Prefix loads its VRF automatically
adam added the type: bugstatus: accepted labels 2025-12-29 19:44:54 +01:00
adam closed this issue 2025-12-29 19:44:54 +01:00
Author
Owner

@hagbarddenstore commented on GitHub (Jul 29, 2022):

I understand why the code is doing what it's doing, but perhaps it could use the vrf_id field instead of the vrf field.

@hagbarddenstore commented on GitHub (Jul 29, 2022): I understand why the code is doing what it's doing, but perhaps it could use the `vrf_id` field instead of the `vrf` field.
Author
Owner

@jeremystretch commented on GitHub (Aug 1, 2022):

Thanks for tracking this down!

@jeremystretch commented on GitHub (Aug 1, 2022): Thanks for tracking this down!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6743