Skip to content

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.

)
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