Skip to content

7699 Add Scope to Cluster #17848

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

Merged
merged 35 commits into from
Nov 1, 2024
Merged

7699 Add Scope to Cluster #17848

merged 35 commits into from
Nov 1, 2024

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
@@ -148,7 +148,7 @@ def get_for_virtualmachine(self, vm):

# 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
2 participants