Accessing Fully Rendered Config Context Data is not Clear When Using Export Templates #4701

Closed
opened 2025-12-29 19:19:37 +01:00 by adam · 1 comment
Owner

Originally created by @tcaiazza on GitHub (Mar 25, 2021).

Originally assigned to: @tcaiazza on GitHub.

Change Type

Addition

Area

  • Installation instructions
  • Configuration parameters
  • Functionality/features
  • REST API
  • Administration/development
  • Other

Proposed Changes

The combination of export templates and config context data are extremely powerful, but use the two in combination isn't as intuitive as accessing ofter attributes within an object. In order to access the fully rendered config context for an object, you need to use the function get_config_context() in the jinja template, which does not appear to be documented anywhere.

Originally created by @tcaiazza on GitHub (Mar 25, 2021). Originally assigned to: @tcaiazza on GitHub. ### Change Type Addition ### Area - [ ] Installation instructions - [ ] Configuration parameters - [ ] Functionality/features - [ ] REST API - [ ] Administration/development - [ ] Other ### Proposed Changes The combination of export templates and config context data are extremely powerful, but use the two in combination isn't as intuitive as accessing ofter attributes within an object. In order to access the fully rendered config context for an object, you need to use the function `get_config_context()` in the jinja template, which does not appear to be documented anywhere.
adam added the status: acceptedtype: documentation labels 2025-12-29 19:19:37 +01:00
adam closed this issue 2025-12-29 19:19:37 +01:00
Author
Owner

@tcaiazza commented on GitHub (Apr 5, 2021):

I'd be happy to write the documentation myself, I just need the issue be accepted.

@tcaiazza commented on GitHub (Apr 5, 2021): I'd be happy to write the documentation myself, I just need the issue be accepted.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4701