Skip to content

Conversation

@renatoalmeidaoliveira
Copy link
Contributor

Closes: #18976 Display FHRP Group name on VM Interface page

The FHRPGroup model defines a logic for its __str__ representation, as seen in the code implementation. However, the INTERFACE_FHRPGROUPS template currently uses a different representation for FHRPGroup, instead of relying on its __str__ method.

Since the __str__ representation already encapsulates all the necessary data for this use case, it makes sense to standardize the logic by ensuring INTERFACE_FHRPGROUPS utilizes the FHRPGroup model’s __str__ method when displaying the field.

@renatoalmeidaoliveira renatoalmeidaoliveira requested review from a team and jeremystretch and removed request for a team April 21, 2025 14:49
@jeremystretch jeremystretch merged commit 6b9b66a into netbox-community:main Apr 22, 2025
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display FHRP Group name on VM Interface page

2 participants