{% extends 'base.html' %} {% set active_page = "device" %} {% set version2 = True %} {% block container %} {% if current_user.is_authenticated %}
{% if current_user.is_admin(current_user) %}

Device Details
{{ getData.deviceName|angular}}

DEVICE NAME
{%- if deviceInfoDict['rackID'] == false or deviceInfoDict['rackID'] == 'None' %} {% else %} {{rackDict[deviceInfoDict['rackID']][1]}} {% endif %}

Rack Name
{%- if deviceInfoDict['rackID'] == false or deviceInfoDict['rackID'] == 'None' %} {% else %} {{locationDict[rackDict[deviceInfoDict['rackID']][0]]}} {% endif %}

Location Name
{{ getData.uStart|angular}}

Starting U Level
{{ getData.deviceSerial|angular}}

Serial Number
{{ getData.deviceNote|angular}}

Device Notes

Device Type Details
{{getData.deviceRole|angular}}

Device Type
{{getData.deviceMake|angular}}

Device make
{{getData.deviceModel|angular}}

Device Model
{{getData.softwareVersion|angular}}

software
{{getData.uHeight|angular}}

U Height

Interfaces
Interface Name Interface Type IPv4 Address Interface Label Tools Action
{{element.intName|angular}} {{intTypeResult|angular}} {{element.ipv4address|angular}} {{element.intLabel|angular}}
{% else %}
Device Details
{% if deviceInfoDict['deviceName'] == false or deviceInfoDict['deviceName'] == 'None' %} {% endif %} {{deviceInfoDict['deviceName']}}

DEVICE NAME
{%- if deviceInfoDict['rackID'] == false or deviceInfoDict['rackID'] == 'None' %} {% else %} {{rackDict[deviceInfoDict['rackID']][1]}} {% endif %}

Rack Name
{%- if deviceInfoDict['rackID'] == false or deviceInfoDict['rackID'] == 'None' %} {% else %} {{locationDict[rackDict[deviceInfoDict['rackID']][0]]}} {% endif %}

Location Name
{%- if deviceInfoDict['deviceTypeID'] == false or deviceInfoDict['deviceTypeID'] == 'None' -%} {%- else -%} {{deviceTypeDict[deviceInfoDict['deviceTypeID']][0]}} {%- endif -%}

Device Role
{%- if deviceInfoDict['deviceSerial'] == false or deviceInfoDict['deviceSerial'] == 'None' -%} {%- else -%} {{deviceInfoDict['deviceSerial']}} {%- endif -%}

Serial Number
Interfaces
{% for interface in intInfoArrayDict %}
{{interface['intType']}}

Interface Type
{% if interface['intType'] == 'physical:serial' %}
{%- if interface['ipv4address'] == false or interface['ipv4address'] == '' or interface['ipv4address'] == 'None' -%} {%- else -%} {{interface['ipv4address']}} {%- endif -%}

IPv4 Address
{% endif %} {% if interface['intType'] == 'logical:mgmt' %}
{%- if interface['ipv4address'] == false or interface['ipv4address'] == '' or interface['ipv4address'] == 'None' -%} {%- else -%} {{interface['ipv4address']}} {%- endif -%}

IPv4 Address
{% else %}
{%- if interface['intLabel'] == false or interface['intLabel'] == '' or interface['intLabel'] == 'None' -%} {%- else -%} {{interface['intLabel']}} {%- endif -%}

Interface Label
{% endif %}
{%- if interface['intNote'] == false or interface['intNote'] == '' or interface['intNote'] == 'None' -%} {%- else -%} {{interface['intNote']}} {%- endif -%}

Interface Notes
{% endfor %}
{% endif %}
{% else %}

Authorized Access Only

Click Here To Login

{% endif %} {% endblock %} {% block scripts %} {% endblock %}