Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 791 Bytes

File metadata and controls

26 lines (17 loc) · 791 Bytes
Home / Usage

Metafield Templates

Example Template

Create Global Variables using Jinja and static values:

Create Site Specific Variables. The record for metadata gets data using the following Jinja:

{
  "site_subnet": "{{'10.48.0.0/12' | ipaddr('subnet') | ipsubnet(24,devmeta.site_id|int-1)}}",
  "vlan_count": "4",
  "vlan_cidr": "28"
}

When running the automation Render Metafield Template with a Device we can see how the Metadata would be applied to the device if associated to this template.

Once Create these can be used in Script Templates.