Skip to content

netbox_ip_address: support for FHRP group assignment #1429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

chaeynz
Copy link

@chaeynz chaeynz commented Jun 18, 2025

Related Issue

#1428

New Behavior

Add support for FHRP group assignment

...

Contrast to Current Behavior

doesnt support it rn

...

Discussion: Benefits and Drawbacks

just a draft PR right now,
I'm trying to read into the codebase to understand how exactly the query_dict is relevant and how it does the assignment to assigned_object

...

Changes to the Documentation

n/a \ in code
...

Proposed Release Note Entry

netbox_ip_address: add support for FHRP group assignment

...

Double Check

  • [ X] I have read the comments and followed the CONTRIBUTING.md.
  • [ X] I have explained my PR according to the information in the comments or in a linked issue.
  • [ X] My PR targets the devel branch.

@@ -1076,6 +1076,11 @@ def _build_query_params(
query_dict.update(
{"interface_id": module_data.get("assigned_object_id")}
)
elif module_data["assigned_object_type"] == "ipam.fhrpgroup":
query_dict.update(
{"???": module_data.get("assigned_object_id")}
Copy link
Contributor

@sc68cal sc68cal Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just guessing here but it might be group_id or group. It's hard to tell, looking at https://github.com/netbox-community/netbox/blob/c660f1c019ddb46713f830c360dd5804784c73df/netbox/ipam/api/serializers_/fhrpgroups.py#L5.

Virtual Chassis uses master which is defined here - https://github.com/netbox-community/netbox/blob/main/netbox/dcim/api/serializers_/virtualchassis.py#L12 so that's the pattern I'm using to guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants