Skip to content

API: returns too many interfaces for VC member when filtering for device_id #13534

@cs-1

Description

@cs-1

NetBox version

v3.5.8

Python version

3.10

Steps to Reproduce

  1. Create a device a with x interfaces.
  2. Create a device b with y interfaces.
  3. Create virtual chassis and add both devices a and b.
  4. Make an API call at /api/dcim/interfaces and filter for device_id of device a.

Expected Behavior

Only interfaces for device "a" are returned.

Observed Behavior

Interfaces for device a and device b are returned.

This behaviour was different in NetBox v3.5.6, only interfaces of device "a" were returned when filtering for the according device_id.

When using the device name of device "a" as a filter criterium, only interfaces of device "a" are returned as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions