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

Add Image Attachments to Virtual Machines #15712

Closed
Hedius opened this issue Apr 12, 2024 · 4 comments
Closed

Add Image Attachments to Virtual Machines #15712

Hedius opened this issue Apr 12, 2024 · 4 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@Hedius
Copy link
Contributor

Hedius commented Apr 12, 2024

NetBox version

4.0

Feature type

New functionality

Proposed functionality

Extend virtual machines with the ability to add image attachments.

  1. Inherit the ImageAttachmentsMixin in the VirtualMachine model.
  2. Add the required template to the object view for VMs

https://github.com/Hedius/netbox/tree/15712-add_imageattachments_to_virtualmachines

Use case

I acknowledge that this feature (according to the FAQ) is or was initially meant for uploading photos of hardware and racks.

Our NetBox partly evolved into us uploading diagrams etc. into devices to extend the comment section with them.
(We document there what a host / server is doing etc.)
It would be a nice to have if we can do the same in virtual machines.
Main advantage is that you have those images directly linked to the host.

I do not know how other organizations use this feature, but having the same abilities for bare metal servers and virtual machines seems right to me.

Would this change be acceptable to you?

Adding the modal to VMs would not extend the complexity of NetBox.

Database changes

None

External dependencies

None

@Hedius Hedius added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Apr 12, 2024
Hedius added a commit to Hedius/netbox that referenced this issue Apr 12, 2024
@Hedius
Copy link
Contributor Author

Hedius commented Apr 12, 2024

I would like to open a pull request for this if this request gets accepted: https://github.com/Hedius/netbox/tree/15712-add_imageattachments_to_virtualmachines provides the required changes.

The dialog told me not to do it, before it gets accepted :)

@Hedius Hedius changed the title Add ImageAttachments to VirtualMachines Add Image Attachments to Virtual Machines Apr 12, 2024
@jeffgdotorg
Copy link
Contributor

Thanks for your interest in helping improve NetBox, and especially for the well-reasoned issue body. It makes sense to me even though the front / rear image support for Devices exists at the Device Type level, for which no analog currently exists in VMs.

I'm moving this issue into accepted and assigning to you for implementation. Two caveats:

  • I notice that the FR specifies NetBox 4.0, while your branch appears to be based on develop. You'll need to rebase against feature if that's the release you mean to target.
  • The accepted status label is provisional; I'm just triaging at this point.

@jeffgdotorg jeffgdotorg added status: accepted This issue has been accepted for implementation and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 18, 2024
@Hedius
Copy link
Contributor Author

Hedius commented Apr 19, 2024

Thank you for the provisional accepted status.

My feature branch for the issue is based on the feature branch, but i only have the develop branch in my fork and it compares to that one.

Will rebase it and then open a PR.

@jeremystretch
Copy link
Member

Tagging this for v4.0.

@jeremystretch jeremystretch added this to the v4.0 milestone Apr 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants