Unable to assign a virtual parent interface to an existing interface #4729

Closed
opened 2025-12-29 19:19:57 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 7, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11-beta1

Python version

3.7

Steps to Reproduce

  • Devices > Add
    • Role: Access switch
    • Manufacturer: Cisco
    • Device type: C9200-48P
    • Site: Butler Communications
  • Add Interface (blue button at bottom)
    • Name: vlan123
    • Create and add more
    • Name: vlan123456
    • Create
  • Change to "100 per page" to see them
  • Click edit (pencil) next to vlan123
    • Select parent interface GigabitEthernet1/0/1
    • Update
  • Click edit (pencil) next to vlan123456
    • Scroll through parent interface list
    • No vlan interfaces are visible as parent

Thanks to @candlerb for tracking this down in #6094!

Expected Behavior

We should see all available interfaces in the parent choices.

Observed Behavior

Only physical interfaces are listed.

This is due to query_params={'kind': 'physical'} being applied to the parent field on InterfaceForm.

Originally created by @jeremystretch on GitHub (Apr 7, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11-beta1 ### Python version 3.7 ### Steps to Reproduce * Devices > Add * Role: Access switch * Manufacturer: Cisco * Device type: C9200-48P * Site: Butler Communications * Add Interface (blue button at bottom) * Name: vlan123 * Create and add more * Name: vlan123456 * Create * Change to "100 per page" to see them * Click edit (pencil) next to vlan123 * Select parent interface GigabitEthernet1/0/1 * Update * Click edit (pencil) next to vlan123456 * Scroll through parent interface list * No vlan interfaces are visible as parent Thanks to @candlerb for tracking this down in #6094! ### Expected Behavior We should see all available interfaces in the parent choices. ### Observed Behavior Only physical interfaces are listed. This is due to `query_params={'kind': 'physical'}` being applied to the `parent` field on InterfaceForm.
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:19:57 +01:00
adam closed this issue 2025-12-29 19:19:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4729