Skip to content

Conversation

@arthanson
Copy link
Collaborator

@arthanson arthanson commented Oct 23, 2024

Fixes: #7699

Added mixins as well, not sure if they should be in netbox/ or dcim/ but the filtersets would need to be in something like filterset_mixins, so not sure if that is good. Can move them if desired.

Once this is approved will make a separate PR to move the already implemented scoped models to use these mixins.

@arthanson arthanson changed the base branch from develop to feature October 23, 2024 21:40
@arthanson arthanson changed the title DRAFT: 7699 Add Scope to Cluster 7699 Add Scope to Cluster Oct 24, 2024
@arthanson arthanson marked this pull request as ready for review October 24, 2024 20:12
@jeremystretch jeremystretch added this to the v4.2 milestone Oct 25, 2024
# Find all relevant VLANGroups
q = Q()
site = vm.site or vm.cluster.site
site = vm.site or vm.cluster._site
Copy link
Member

Choose a reason for hiding this comment

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

This should be adapted for the other scope types as well, as VLAN groups can also be assigned to different scopes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

? Not sure I follow this - this is for VLAN, not VLANGroup and any higher scope assignment will filter down to _site - so _site should pick up all the assignments?

@arthanson
Copy link
Collaborator Author

FYI: I don't think the build breaking is from the PR, looks like from background task running...

@jeremystretch jeremystretch merged commit 6dc75d8 into feature Nov 1, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 7699-cluster-location branch November 1, 2024 18:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2024
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.

Assign virtualization Clusters to a Location

3 participants