diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 716752c57..37006dfad 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -5,847 +5,934 @@ {% block title %}{{ device }}{% endblock %} {% block header %} -
Site | -- {% if device.site.region %} - {{ device.site.region }} - - {% endif %} - {{ device.site }} - | -
Rack | -- {% if device.rack %} - {% if device.rack.group %} - {{ device.rack.group }} - - {% endif %} - {{ device.rack }} - {% else %} - None - {% endif %} - | -
Position | -- {% if device.parent_bay %} - {% with device.parent_bay.device as parent %} - {{ parent }} {{ device.parent_bay }} - {% if parent.position %} - (U{{ parent.position }} / {{ parent.get_face_display }}) - {% endif %} - {% endwith %} - {% elif device.rack and device.position %} - U{{ device.position }} / {{ device.get_face_display }} - {% elif device.rack and device.device_type.u_height %} - Not racked - {% else %} - — - {% endif %} - | -
Tenant | -- {% if device.tenant %} - {% if device.tenant.group %} - {{ device.tenant.group }} - - {% endif %} - {{ device.tenant }} - {% else %} - None - {% endif %} - | -
Device Type | -- {{ device.device_type.display_name }} ({{ device.device_type.u_height }}U) - | -
Serial Number | -{{ device.serial|placeholder }} | -
Asset Tag | -{{ device.asset_tag|placeholder }} | -
Device | -Position | -Master | -Priority | -
---|---|---|---|
- {{ vc_member }} - | -{{ vc_member.vc_position }} | -{% if device.virtual_chassis.master == vc_member %}{% endif %} | -{{ vc_member.vc_priority|default:"" }} | -
Device | +Position | +Master | +Priority | +
---|---|---|---|
+ {{ vc_member }} + | +{{ vc_member.vc_position }} | +{% if device.virtual_chassis.master == vc_member %}{% endif %} | +{{ vc_member.vc_priority|default:"" }} | +
Role | ++ {{ device.device_role }} + | +
Platform | ++ {% if device.platform %} + {{ device.platform }} + {% else %} + None + {% endif %} + | +
Status | ++ {{ device.get_status_display }} + | +
Primary IPv4 | ++ {% if device.primary_ip4 %} + {{ device.primary_ip4.address.ip }} + {% if device.primary_ip4.nat_inside %} + (NAT for {{ device.primary_ip4.nat_inside.address.ip }}) + {% elif device.primary_ip4.nat_outside %} + (NAT: {{ device.primary_ip4.nat_outside.address.ip }}) + {% endif %} + {% else %} + — + {% endif %} + | +
Primary IPv6 | ++ {% if device.primary_ip6 %} + {{ device.primary_ip6.address.ip }} + {% if device.primary_ip6.nat_inside %} + (NAT for {{ device.primary_ip6.nat_inside.address.ip }}) + {% elif device.primary_ip6.nat_outside %} + (NAT: {{ device.primary_ip6.nat_outside.address.ip }}) + {% endif %} + {% else %} + — + {% endif %} + | +
Cluster | ++ {% if device.cluster.group %} + {{ device.cluster.group }} + + {% endif %} + {{ device.cluster }} + | +
- {{ rd }} - | -- {% if rd.rack %} - Rack {{ rd.rack }} - {% else %} - — - {% endif %} - | -{{ rd.device_type.display_name }} | -
+ {% endif %} + | Name | +Status | +Installed Device | ++ | |
---|---|---|---|---|---|
— No device bays defined — | +
+ {% endif %} + | Name | +LAG | +Description | +MTU | +Mode | +Cable | +Connection | ++ |
---|
+ {% endif %} + | Name | +Cable | +Connection | ++ |
---|
+ {% endif %} + | Name | +Cable | +Connection | ++ |
---|
+ {% endif %} + | Name | +Type | +Rear Port | +Position | +Description | +Cable | +Connection | ++ |
---|
+ {% endif %} + | Name | +Type | +Positions | +Description | +Cable | +Connection | ++ |
---|