Skip to content

IP Address REST API changes to accomodate FHRP Groups #9081

@zmaster7

Description

@zmaster7

NetBox version

v3.2.0

Feature type

New functionality

Proposed functionality

On the current /ipam/ip-addresses/ endpoint there is currently no GET request filter for FHRP groups. I propose either allow filtering based on both assigned_object_type and assigned_object_id. Or, add a fhrpgroup_id (group_id?) field, much like the current interface_id and vminterface_id fields.

I assume being able to filter by both assigned_object_type and assigned_object_id would be more future-proof, but I am unsure of the extra technicalities of that.

Use case

In my case, I am checking a current device configuration against NetBox to see what data already exists, and what needs to be created. I can obviously pull a larger subset of IPs and then filter after the fact, but that is not ideal.

Database changes

No response

External dependencies

No response

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