Skip to content
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

7537 add serial number to virtual machines #16407

Merged
merged 11 commits into from
Jun 12, 2024
Merged

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Jun 4, 2024

Fixes: #7537

Added serial number field, kept it as non-unique? Wasn't sure if multiple vendors would have conflicting serial numbers if they aren't UUID, can change to unique if needed?

Didn't add to bulk edit as it didn't make sense to set multiple ones the same.

@jeremystretch jeremystretch added this to the v4.1 milestone Jun 5, 2024
@arthanson arthanson marked this pull request as ready for review June 5, 2024 14:18
@arthanson arthanson changed the title DRAFT: 7537 add serial number to virtual machines 7537 add serial number to virtual machines Jun 5, 2024
@ITJamie
Copy link
Contributor

ITJamie commented Jun 6, 2024

I could see Serials being set to unique for a specific cluster. but non-unique outside the cluster

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Missing a few items:

  • Add the serial field to the VM template
  • Add the serial field to the search indexer

(Remember there's a checklist for adding new fields to models.)

netbox/virtualization/api/serializers_/virtualmachines.py Outdated Show resolved Hide resolved
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Thanks @arthanson!

@jeremystretch jeremystretch merged commit c6553c4 into feature Jun 12, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 7537-vm-serial branch June 12, 2024 14:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 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.

3 participants