Computed fields
Computed fields are fields that are computed at runtime. Nautobot’s implementation provides access to the associated data, as well as Jinja templating, including any available Jinja filters. Computed fields intend to derive data from existing data in a consistent and centralized manner.
Imagine that you want to auto-generate an interface description from data that’s already in Nautobot. One option is building this logic in some external script. Another option is using computed fields. Computed fields allow you to use Jinja templating and filters (if needed) to concatenate the value you need. In this example, you can pull data from your hostname, interfaces, and even your neighbor’s data.
A computed field can be applied to existing model object instances but is never stored; instead, it’s generated on the fly. A computed field can be applied to nearly all core Nautobot models and leverage Jinja syntax and any available filters to render...