[PR #2208] [MERGED] 1349 config contexts #12331

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2208
Author: @jeremystretch
Created: 6/29/2018
Status: Merged
Merged: 6/29/2018
Merged by: @jeremystretch

Base: develop-2.4Head: 1349-config-contexts


📝 Commits (9)

  • c13e485 Initial work on config contexts
  • b952ec7 Introduced the render_json template filter
  • 62989ec Moved object context rendering to ObjectConfigContextView and standardized the template
  • 65dd7a5 Applied JSON rederer to ConfigContext data
  • 1edc731 Sort rendered config context
  • ace7e3b Fixed is_active table column
  • 743cf6d Added description to ConfigContext
  • 278bacb Fixed rendered config context ordering
  • 7857480 Added missing description field

📊 Changes

28 files changed (+631 additions, -22 deletions)

View changed files

📝 netbox/dcim/api/views.py (+5 -1)
📝 netbox/dcim/models.py (+2 -2)
📝 netbox/dcim/urls.py (+1 -0)
📝 netbox/dcim/views.py (+6 -0)
📝 netbox/extras/admin.py (+11 -1)
📝 netbox/extras/api/serializers.py (+26 -2)
📝 netbox/extras/api/urls.py (+3 -0)
📝 netbox/extras/api/views.py (+11 -1)
📝 netbox/extras/forms.py (+20 -2)
netbox/extras/migrations/0014_configcontexts.py (+45 -0)
📝 netbox/extras/models.py (+82 -5)
netbox/extras/querysets.py (+23 -0)
📝 netbox/extras/tables.py (+28 -2)
📝 netbox/extras/urls.py (+8 -0)
📝 netbox/extras/views.py (+68 -3)
📝 netbox/templates/dcim/device.html (+3 -0)
netbox/templates/extras/configcontext.html (+171 -0)
netbox/templates/extras/configcontext_edit.html (+30 -0)
netbox/templates/extras/configcontext_list.html (+16 -0)
netbox/templates/extras/object_configcontext.html (+38 -0)

...and 8 more files

📄 Description

Closes: #1349

Implements contextual configuration data for devices and virtual machines


🔄 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/2208 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 6/29/2018 **Status:** ✅ Merged **Merged:** 6/29/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.4` ← **Head:** `1349-config-contexts` --- ### 📝 Commits (9) - [`c13e485`](https://github.com/netbox-community/netbox/commit/c13e4858d7c1704ada3d4e1c941bd2b1a6336c88) Initial work on config contexts - [`b952ec7`](https://github.com/netbox-community/netbox/commit/b952ec73ce597219d788662b6aff610ffda9c7ef) Introduced the render_json template filter - [`62989ec`](https://github.com/netbox-community/netbox/commit/62989ecb6e263a901a81aa3adcd32cdb1ab437f2) Moved object context rendering to ObjectConfigContextView and standardized the template - [`65dd7a5`](https://github.com/netbox-community/netbox/commit/65dd7a59380cfd06a17b1daffbfc6a106e69ef89) Applied JSON rederer to ConfigContext data - [`1edc731`](https://github.com/netbox-community/netbox/commit/1edc73179a03c54f74b9346a6a19b1e4eb1726e5) Sort rendered config context - [`ace7e3b`](https://github.com/netbox-community/netbox/commit/ace7e3b1082d259d90b5c333e1901a7312d36ca5) Fixed is_active table column - [`743cf6d`](https://github.com/netbox-community/netbox/commit/743cf6d3982009f0a83407a856597025cbec76a8) Added description to ConfigContext - [`278bacb`](https://github.com/netbox-community/netbox/commit/278bacbce8675b4478ec2bb68079d8a911547fac) Fixed rendered config context ordering - [`7857480`](https://github.com/netbox-community/netbox/commit/78574809789d927df8de1d3ee81320de4c6419a0) Added missing description field ### 📊 Changes **28 files changed** (+631 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+5 -1) 📝 `netbox/dcim/models.py` (+2 -2) 📝 `netbox/dcim/urls.py` (+1 -0) 📝 `netbox/dcim/views.py` (+6 -0) 📝 `netbox/extras/admin.py` (+11 -1) 📝 `netbox/extras/api/serializers.py` (+26 -2) 📝 `netbox/extras/api/urls.py` (+3 -0) 📝 `netbox/extras/api/views.py` (+11 -1) 📝 `netbox/extras/forms.py` (+20 -2) ➕ `netbox/extras/migrations/0014_configcontexts.py` (+45 -0) 📝 `netbox/extras/models.py` (+82 -5) ➕ `netbox/extras/querysets.py` (+23 -0) 📝 `netbox/extras/tables.py` (+28 -2) 📝 `netbox/extras/urls.py` (+8 -0) 📝 `netbox/extras/views.py` (+68 -3) 📝 `netbox/templates/dcim/device.html` (+3 -0) ➕ `netbox/templates/extras/configcontext.html` (+171 -0) ➕ `netbox/templates/extras/configcontext_edit.html` (+30 -0) ➕ `netbox/templates/extras/configcontext_list.html` (+16 -0) ➕ `netbox/templates/extras/object_configcontext.html` (+38 -0) _...and 8 more files_ </details> ### 📄 Description ### Closes: #1349 Implements contextual configuration data for devices and virtual machines --- <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:20:55 +01:00
adam closed this issue 2025-12-29 22:20:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12331