Skip to content

Add Configuration Template Variable Table #14277

@MCDELTAT

Description

@MCDELTAT

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending closureRequires immediate attention to avoid being closed for inactivitytype: documentationA change or addition to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions