Skip to content

mask_length__(lte|gte) filter for IP addresses #14101

@devon-mar

Description

@devon-mar

NetBox version

v3.6.4

Feature type

New functionality

Proposed functionality

The ipam/prefixes API endpoint has the mask_length__gte and mask_length__lte filters while the ipam/ip-addresses endpoint only has mask_length. I propose to add the gte and lte filters to the IP addresses endpoint as well.

I can make a PR for this if accepted.

Use case

I would like to get all point to point interfaces (interfaces with an address with a mask length >= 30 for IPv4 or >= 126 for IPv6).

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions