-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Change Type
Addition
Area
Features
Proposed Changes
Should we add an exhaustive list of variables that can be used in Jinja Configuration Templates? At the moment, it does not appear any reference exists at all.
I found this tutorial from Netbox Labs here. I also found the short snippet that exists in the Configuration Rendering page of the official docs here.
I noticed that many of the items are simply the JSON path of the Device API Response such as device.device_type.manufacturer.slug. However, on testing some like device.device_type.display did not render, telling me there are exceptions to the API response. In the first example, it also calls things like device.interfaces.all(), when there is no direct device.interfaces object on the API response. Are there additional functions? What are they? I think the doc would be helpful in referencing all of this.
This seems like a good first ticket and I wouldn't mind picking it up if it isn't a quick write up for a current maintainer.
Thanks.