NetBox Full Device Variable Reference
| device | ||
| │ | ||
| ├─ DIRECT ATTRIBUTES | ||
| │ ├─ id | device.id | {{ device.id }} |
| │ ├─ name | device.name | {{ device.name }} |
| │ ├─ serial | device.serial | {{ device.serial }} |
| │ ├─ asset_tag | device.asset_tag | {{ device.asset_tag }} |
| │ ├─ status | device.status | {{ device.status }} |
| │ ├─ position | device.position | {{ device.position }} |
| │ ├─ face | device.face | {{ device.face }} |
| │ ├─ airflow | device.airflow | {{ device.airflow }} |
| │ ├─ latitude | device.latitude | {{ device.latitude }} |
| │ ├─ longitude | device.longitude | {{ device.longitude }} |
| │ └─ comments | device.comments | {{ device.comments }} |
| │ | ||
| ├─ CUSTOM FIELDS | ||
| │ └─ <custom_field_name> | device.cf.<custom_field_name> | {{ device.cf.<custom_field_name> }} |
| │ | ||
| ├─ CONFIG CONTEXT | ||
| │ └─ <config_context_key> | <config_context_key> | {{ <config_context_key> }} |
| │ | ||
| ├─ RELATED OBJECTS | ||
| │ ├─ role | device.role | {{ device.role }} |
| │ ├─ device_type | device.device_type | {{ device.device_type }} |
| │ ├─ platform | device.platform | {{ device.platform }} |
| │ ├─ site | device.site | {{ device.site }} |
| │ ├─ location | device.location | {{ device.location }} |
| │ ├─ rack | device.rack | {{ device.rack }} |
| │ ├─ tenant | device.tenant | {{ device.tenant }} |
| │ ├─ primary_ip4 | device.primary_ip4 | {{ device.primary_ip4 }} |
| │ ├─ primary_ip6 | device.primary_ip6 | {{ device.primary_ip6 }} |
| │ ├─ oob_ip | device.oob_ip | {{ device.oob_ip }} |
| │ ├─ cluster | device.cluster | {{ device.cluster }} |
| │ ├─ virtual_chassis | device.virtual_chassis | {{ device.virtual_chassis }} |
| │ ├─ vc_position | device.vc_position | {{ device.vc_position }} |
| │ ├─ vc_priority | device.vc_priority | {{ device.vc_priority }} |
| │ └─ config_template | device.config_template | {{ device.config_template }} |
| │ | ||
| └─ RELATED COLLECTIONS | ||
| ├─ tags | device.tags.all() | {% for tag in device.tags.all() %} |
| │ └─ name | tag.name | {{ tag.name }} |
| │ | {% endfor %} | |
| │ | ||
| └─ interfaces | device.interfaces.all() | {% for intf in device.interfaces.all() %} |
| ├─ name | interface.name | {{ intf.name }} |
| ├─ enabled | interface.enabled | {{ intf.enabled }} |
| ├─ type | interface.type | {{ intf.type }} |
| ├─ mgmt_only | interface.mgmt_only | {{ intf.mgmt_only }} |
| ├─ mtu | interface.mtu | {{ intf.mtu }} |
| ├─ mac_address | interface.mac_address | {{ intf.mac_address }} |
| ├─ description | interface.description | {{ intf.description }} |
| ├─ mode | interface.mode | {{ intf.mode }} |
| ├─ parent | interface.parent | {{ intf.parent }} |
| ├─ bridge | interface.bridge | {{ intf.bridge }} |
| ├─ lag | interface.lag | {{ intf.lag }} |
| ├─ cf | interface.cf.<custom_field_name> | {{ intf.cf.<custom_field_name> }} |
| ├─ untagged_vlan | interface.untagged_vlan | {{ intf.untagged_vlan }} |
| ├─ tagged_vlans | interface.tagged_vlans.all() | {% for vlan in intf.tagged_vlans.all() %} |
| │ ├─ vid | vlan.vid | {{ vlan.vid }} |
| │ ├─ name | vlan.name | {{ vlan.name }} |
| │ ├─ status | vlan.status | {{ vlan.status }} |
| │ ├─ role | vlan.role | {{ vlan.role }} |
| │ ├─ tenant | vlan.tenant | {{ vlan.tenant }} |
| │ ├─ group | vlan.group | {{ vlan.group }} |
| │ ├─ site | vlan.site | {{ vlan.site }} |
| │ └─ cf | vlan.cf.<custom_field_name> | {{ vlan.cf.<custom_field_name> }} |
| │ | {% endfor %} | |
| │ | ||
| └─ ip_addresses | interface.ip_addresses.all() | {% for ip in intf.ip_addresses.all() %} |
| ├─ address | ip_address.address | {{ ip.address }} |
| ├─ vrf | ip_address.vrf | {{ ip.vrf }} |
| ├─ tenant | ip_address.tenant | {{ ip.tenant }} |
| ├─ status | ip_address.status | {{ ip.status }} |
| ├─ role | ip_address.role | {{ ip.role }} |
| ├─ dns_name | ip_address.dns_name | {{ ip.dns_name }} |
| ├─ assigned_object | ip_address.assigned_object | {{ ip.assigned_object }} |
| ├─ nat_inside | ip_address.nat_inside | {{ ip.nat_inside }} |
| ├─ family | ip_address.family | {{ ip.family }} |
| ├─ is_primary_ip | ip_address.is_primary_ip | {{ ip.is_primary_ip }} |
| ├─ cf | ip_address.cf.<custom_field_name> | {{ ip.cf.<custom_field_name> }} |
| │ | ||
| └─ nat_outside | ip_address.nat_outside.all() | {% for nat in ip.nat_outside.all() %} |
| ├─ address | nat_outside.address | {{ nat.address }} |
| ├─ vrf | nat_outside.vrf | {{ nat.vrf }} |
| ├─ tenant | nat_outside.tenant | {{ nat.tenant }} |
| ├─ status | nat_outside.status | {{ nat.status }} |
| ├─ role | nat_outside.role | {{ nat.role }} |
| ├─ dns_name | nat_outside.dns_name | {{ nat.dns_name }} |
| └─ cf | nat_outside.cf.<custom_field_name> | {{ nat.cf.<custom_field_name> }} |
| {% endfor %} | ||
| {% endfor %} | ||
| {% endfor %} | ||