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

Closed
opened 2025-12-29 20:40:56 +01:00 by adam · 0 comments
Owner

Originally created by @devon-mar on GitHub (Oct 22, 2023).

Originally assigned to: @abhi1693 on GitHub.

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

Originally created by @devon-mar on GitHub (Oct 22, 2023). Originally assigned to: @abhi1693 on GitHub. ### 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
adam added the status: acceptedtype: feature labels 2025-12-29 20:40:56 +01:00
adam closed this issue 2025-12-29 20:40: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#8765