[PR #2445] [MERGED] Local config context #12374

Closed
opened 2025-12-29 22:21:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2445
Author: @lampwins
Created: 9/18/2018
Status: Merged
Merged: 9/28/2018
Merged by: @jeremystretch

Base: developHead: local-config-context


📝 Commits (5)

  • 0da113b implemnted #2392 - local config context for devices and VMs
  • e3e9211 PEP8 fix
  • 4039753 refactored UI for local config context
  • fb5dca2 Merge branch 'develop' of github.com:digitalocean/netbox into local-config-context
  • f76ce98 remove templates no longer needed for local config context

📊 Changes

13 files changed (+97 additions, -5 deletions)

View changed files

📝 docs/additional-features/context-data.md (+2 -0)
📝 netbox/dcim/api/serializers.py (+2 -2)
📝 netbox/dcim/forms.py (+4 -1)
netbox/dcim/migrations/0063_device_local_context_data.py (+19 -0)
📝 netbox/extras/models.py (+9 -0)
📝 netbox/extras/views.py (+3 -1)
📝 netbox/templates/dcim/device_edit.html (+6 -0)
📝 netbox/templates/extras/object_configcontext.html (+18 -0)
📝 netbox/templates/virtualization/virtualmachine_edit.html (+6 -0)
📝 netbox/virtualization/api/serializers.py (+2 -0)
📝 netbox/virtualization/forms.py (+6 -1)
netbox/virtualization/migrations/0008_virtualmachine_local_context_data.py (+19 -0)
📝 netbox/virtualization/models.py (+1 -0)

📄 Description

Fixes: #2392

This PR implements support for local config context data on the Device and VirtualMachine models. The local_context_data field is a JSONField. It's contents are included in the final pass of the rendered config_context of an object, meaning, the local context always overwrites all source ConfigContext objects.


🔄 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/2445 **Author:** [@lampwins](https://github.com/lampwins) **Created:** 9/18/2018 **Status:** ✅ Merged **Merged:** 9/28/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `local-config-context` --- ### 📝 Commits (5) - [`0da113b`](https://github.com/netbox-community/netbox/commit/0da113b72375dca3677d47ab8fc39730bb67a326) implemnted #2392 - local config context for devices and VMs - [`e3e9211`](https://github.com/netbox-community/netbox/commit/e3e9211e8a31a3ed4db787980838aad1d4e58c38) PEP8 fix - [`4039753`](https://github.com/netbox-community/netbox/commit/4039753b2f69602a0203d76f7ced3d2da5f0835c) refactored UI for local config context - [`fb5dca2`](https://github.com/netbox-community/netbox/commit/fb5dca271134a22a067cc384905c3d882677a2d9) Merge branch 'develop' of github.com:digitalocean/netbox into local-config-context - [`f76ce98`](https://github.com/netbox-community/netbox/commit/f76ce980e36aaadfe0179755ef6990c18b5f71dc) remove templates no longer needed for local config context ### 📊 Changes **13 files changed** (+97 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/additional-features/context-data.md` (+2 -0) 📝 `netbox/dcim/api/serializers.py` (+2 -2) 📝 `netbox/dcim/forms.py` (+4 -1) ➕ `netbox/dcim/migrations/0063_device_local_context_data.py` (+19 -0) 📝 `netbox/extras/models.py` (+9 -0) 📝 `netbox/extras/views.py` (+3 -1) 📝 `netbox/templates/dcim/device_edit.html` (+6 -0) 📝 `netbox/templates/extras/object_configcontext.html` (+18 -0) 📝 `netbox/templates/virtualization/virtualmachine_edit.html` (+6 -0) 📝 `netbox/virtualization/api/serializers.py` (+2 -0) 📝 `netbox/virtualization/forms.py` (+6 -1) ➕ `netbox/virtualization/migrations/0008_virtualmachine_local_context_data.py` (+19 -0) 📝 `netbox/virtualization/models.py` (+1 -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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #2392 This PR implements support for local config context data on the Device and VirtualMachine models. The `local_context_data` field is a JSONField. It's contents are included in the final pass of the rendered `config_context` of an object, meaning, the local context always overwrites all source ConfigContext objects. --- <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 22:21:09 +01:00
adam closed this issue 2025-12-29 22:21:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12374