Skip to content

IPAM: Passing multiple values for a single parameter when filtering prefixes #5935

@chex7

Description

@chex7

Environment

  • Python version: 3.6.8
  • NetBox version: v2.10.1

Steps to Reproduce

  1. In the web GUI <netboxurl>/ipam/prefixes/?prefix=<prefix1>%2F<netmask1>&prefix=<prefix2>%2F<netmask2>

Expected Behavior

From the docs:

Generally, passing multiple values for a single parameter will result in a logical OR operation. For example, GET /api/dcim/sites/?region=north-america&region=south-america will return sites in North America or South America. However, a logical AND operation will be used in instances where a field may have multiple values, such as tags.

Seems to work fine with IP addresses.

Observed Behavior

Only the last specified prefix is shown in the results.

I got the same results using the API.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions