Skip to content

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

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

Conversation

renatoalmeidaoliveira
Copy link
Collaborator

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
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.

Display FHRP Group name on VM Interface page
2 participants