{% extends 'generic/object.html' %} {% load buttons %} {% load static %} {% load helpers %} {% load custom_links %} {% load plugins %} {% block breadcrumbs %} {% if object.parent_bay %} {% endif %} {% endblock %} {% block extra_controls %} {% if perms.dcim.change_device %} {% endif %} {% endblock %} {% block tab_items %} {% with interface_count=object.vc_interfaces.count %} {% if interface_count %} {% endif %} {% endwith %} {% with frontport_count=object.frontports.count %} {% if frontport_count %} {% endif %} {% endwith %} {% with rearport_count=object.rearports.count %} {% if rearport_count %} {% endif %} {% endwith %} {% with consoleport_count=object.consoleports.count %} {% if consoleport_count %} {% endif %} {% endwith %} {% with consoleserverport_count=object.consoleserverports.count %} {% if consoleserverport_count %} {% endif %} {% endwith %} {% with powerport_count=object.powerports.count %} {% if powerport_count %} {% endif %} {% endwith %} {% with poweroutlet_count=object.poweroutlets.count %} {% if poweroutlet_count %} {% endif %} {% endwith %} {% with devicebay_count=object.devicebays.count %} {% if devicebay_count %} {% endif %} {% endwith %} {% with inventoryitem_count=object.inventoryitems.count %} {% if inventoryitem_count %} {% endif %} {% endwith %} {% if perms.dcim.napalm_read_device %} {% if object.status != 'active' %} {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='Device must be in active status' %} {% elif not object.platform %} {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No platform assigned to this device' %} {% elif not object.platform.napalm_driver %} {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No NAPALM driver assigned for this platform' %} {% else %} {% include 'dcim/inc/device_napalm_tabs.html' %} {% endif %} {% endif %} {% if perms.extras.view_configcontext %} {% endif %} {% endblock %}