From 34c3c2e10ed640a182f4b88ac1ef1d2f2f389917 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Thu, 3 Aug 2017 03:49:44 -0400 Subject: [PATCH] Fix template references --- netbox/dcim/tables.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index 46cb9a40d..8e6069270 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -39,6 +39,12 @@ DEVICE_LINK = """ """ +INTERFACE_LINK = """ + + {{ record.name|default:'--' }} + +""" + REGION_ACTIONS = """ {% if perms.dcim.change_region %} @@ -97,6 +103,10 @@ DEVICE_STATUS = """ {{ record.get_status_display }} """ +INTERFACE_ENABLED = """ +{{ record.is_enabled }} +""" + DEVICE_PRIMARY_IP = """ {{ record.primary_ip6.address.ip|default:"" }} {% if record.primary_ip6 and record.primary_ip4 %}
{% endif %}