[PR #13450] [MERGED] Adds config template to vm model #14184

Closed
opened 2025-12-29 23:23:03 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13450
Author: @abhi1693
Created: 8/11/2023
Status: Merged
Merged: 8/14/2023
Merged by: @jeremystretch

Base: featureHead: feat/12461-vm-config


📝 Commits (5)

  • 1471aff adds config template to vm model #12461
  • adbc4b7 Add translation tags; collapse config data
  • 73935be i18n cleanup
  • c0fae30 Establish parity with DeviceRenderConfigView
  • e53c4fa Move config_template field to RenderConfigMixin

📊 Changes

15 files changed (+232 additions, -28 deletions)

View changed files

📝 netbox/dcim/migrations/0170_configtemplate.py (+1 -1)
📝 netbox/dcim/models/devices.py (+9 -20)
📝 netbox/dcim/models/mixins.py (+29 -0)
📝 netbox/templates/virtualization/virtualmachine.html (+4 -0)
netbox/templates/virtualization/virtualmachine/render_config.html (+70 -0)
📝 netbox/virtualization/api/serializers.py (+4 -1)
📝 netbox/virtualization/filtersets.py (+5 -0)
📝 netbox/virtualization/forms/bulk_edit.py (+7 -1)
📝 netbox/virtualization/forms/bulk_import.py (+9 -1)
📝 netbox/virtualization/forms/filtersets.py (+7 -1)
📝 netbox/virtualization/forms/model_forms.py (+8 -1)
netbox/virtualization/migrations/0036_virtualmachine_config_template.py (+20 -0)
📝 netbox/virtualization/models/virtualmachines.py (+2 -1)
📝 netbox/virtualization/tables/virtualmachines.py (+5 -1)
📝 netbox/virtualization/views.py (+52 -0)

📄 Description

Fixes: #12461


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13450 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 8/11/2023 **Status:** ✅ Merged **Merged:** 8/14/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `feat/12461-vm-config` --- ### 📝 Commits (5) - [`1471aff`](https://github.com/netbox-community/netbox/commit/1471aff91f2ec9fad94b8b4fe5d126dde2ce797b) adds config template to vm model #12461 - [`adbc4b7`](https://github.com/netbox-community/netbox/commit/adbc4b7e0205b458adc024300971888e7d373ba6) Add translation tags; collapse config data - [`73935be`](https://github.com/netbox-community/netbox/commit/73935be7640c86f01c807d9d48fd9dda7538219d) i18n cleanup - [`c0fae30`](https://github.com/netbox-community/netbox/commit/c0fae306847a4606e93c8d17c2c6385e4e380be5) Establish parity with DeviceRenderConfigView - [`e53c4fa`](https://github.com/netbox-community/netbox/commit/e53c4fac47725a049899c57e71841ef6abc236bc) Move config_template field to RenderConfigMixin ### 📊 Changes **15 files changed** (+232 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/migrations/0170_configtemplate.py` (+1 -1) 📝 `netbox/dcim/models/devices.py` (+9 -20) 📝 `netbox/dcim/models/mixins.py` (+29 -0) 📝 `netbox/templates/virtualization/virtualmachine.html` (+4 -0) ➕ `netbox/templates/virtualization/virtualmachine/render_config.html` (+70 -0) 📝 `netbox/virtualization/api/serializers.py` (+4 -1) 📝 `netbox/virtualization/filtersets.py` (+5 -0) 📝 `netbox/virtualization/forms/bulk_edit.py` (+7 -1) 📝 `netbox/virtualization/forms/bulk_import.py` (+9 -1) 📝 `netbox/virtualization/forms/filtersets.py` (+7 -1) 📝 `netbox/virtualization/forms/model_forms.py` (+8 -1) ➕ `netbox/virtualization/migrations/0036_virtualmachine_config_template.py` (+20 -0) 📝 `netbox/virtualization/models/virtualmachines.py` (+2 -1) 📝 `netbox/virtualization/tables/virtualmachines.py` (+5 -1) 📝 `netbox/virtualization/views.py` (+52 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12461 <!-- Please include a summary of the proposed changes below. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:03 +01:00
adam closed this issue 2025-12-29 23:23:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14184