Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #18147

  • Introduce the RelatedObjectCount dataclass to accept an optional label
  • Update the related_objects.html inclusion template to use RelatedObjectCount
  • Extend VRFView.get_extra_context() to include device & VM interface counts
  • Tweak the signature of get_related_models() to avoid passing mutable values for omit and extra

@jeremystretch jeremystretch requested review from a team and arthanson and removed request for a team August 22, 2025 14:08
Copy link
Collaborator

@arthanson arthanson left a comment

Choose a reason for hiding this comment

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

The Devices Interfaces shows up but if you click on it the resulting list view is not correctly filtered, this is actually true for all the Related Objects - I had prefixes assigned and clicking on that will go to a list of all prefixes. Switching back to main branch and the filtering works correctly.

@arthanson arthanson merged commit 66140fc into main Aug 22, 2025
10 checks passed
@jeremystretch jeremystretch deleted the 18147-vrf-interface-counts branch August 23, 2025 17:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 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.

Add Interfaces to related objects in VRF view.

3 participants