All interfaces of virtual chassis in api #5904

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

Originally created by @PaulR282 on GitHub (Jan 7, 2022).

NetBox version

v3.1.4

Feature type

Change to existing functionality

Proposed functionality

Currently, when you look up the interfaces of virtual chassis (/api/dcim/interfaces/?virtual_chassis_id=X) you only see the interfaces of the master but not the other devices in the virtual chassis. It would be nice to get a list of all interfaces.

Use case

When writing own plugins/programs that use the api this would be a nice and easy way to get all interfaces of virtual chassis.

Database changes

No response

External dependencies

No response

Originally created by @PaulR282 on GitHub (Jan 7, 2022). ### NetBox version v3.1.4 ### Feature type Change to existing functionality ### Proposed functionality Currently, when you look up the interfaces of virtual chassis (`/api/dcim/interfaces/?virtual_chassis_id=X`) you only see the interfaces of the master but not the other devices in the virtual chassis. It would be nice to get a list of all interfaces. ### Use case When writing own plugins/programs that use the api this would be a nice and easy way to get all interfaces of virtual chassis. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:34:04 +01:00
adam closed this issue 2025-12-29 19:34:04 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 7, 2022):

Currently, when you look up the interfaces of virtual chassis (/api/dcim/interfaces/?virtual_chassis_id=X) you only see the interfaces of the master but not the other devices in the virtual chassis.

This filter already returns all interfaces assigned to members within the virtual chassis. Here's the filterset code and an example on the demo instance.

@jeremystretch commented on GitHub (Jan 7, 2022): > Currently, when you look up the interfaces of virtual chassis (/api/dcim/interfaces/?virtual_chassis_id=X) you only see the interfaces of the master but not the other devices in the virtual chassis. This filter already returns all interfaces assigned to members within the virtual chassis. Here's the [filterset code](https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/filtersets.py#L879-L883) and an [example](https://demo.netbox.dev/api/dcim/interfaces/?virtual_chassis_id=1) on the demo instance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5904