Render config for device is not consistent between UI and API #7848

Closed
opened 2025-12-29 20:28:57 +01:00 by adam · 2 comments
Owner

Originally created by @abhi1693 on GitHub (Apr 1, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.5-beta1

Python version

3.10

Steps to Reproduce

  1. Create a GIT datasource using https://github.com/jeremystretch/example-config-templates and sync
  2. Create a config template and choose the file roles/access-switch.j2
  3. Add local config context that can be used in the rendering
  4. Apply the config template on your device
  5. Call the API at /api/dcim/devices/<id>/render-config/

Expected Behavior

The render config should automatically take the device context into the rendering process

Observed Behavior

Rendered config does not have context data

Originally created by @abhi1693 on GitHub (Apr 1, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.5-beta1 ### Python version 3.10 ### Steps to Reproduce 1. Create a GIT datasource using https://github.com/jeremystretch/example-config-templates and sync 2. Create a config template and choose the file `roles/access-switch.j2` 3. Add local config context that can be used in the rendering 4. Apply the config template on your device 5. Call the API at `/api/dcim/devices/<id>/render-config/` ### Expected Behavior The render config should automatically take the device context into the rendering process ### Observed Behavior Rendered config does not have context data
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 20:28:57 +01:00
adam closed this issue 2025-12-29 20:28:57 +01:00
Author
Owner

@abhi1693 commented on GitHub (Apr 3, 2023):

@jeremystretch Would you like me to submit the PR as I already have the commit ready?

@abhi1693 commented on GitHub (Apr 3, 2023): @jeremystretch Would you like me to submit the PR as I already have the commit ready?
Author
Owner

@jeremystretch commented on GitHub (Apr 3, 2023):

I've performed a bit of additional cleanup as well, but thank you!

@jeremystretch commented on GitHub (Apr 3, 2023): I've performed a bit of additional cleanup as well, but thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7848